Typescript: Тип unknown
Задание
Loading...
Ваше упражнение проверяется по этим тестам
import { expect, test } from 'vitest'
import isPlainObject from './index';
test('function', () => {
expect(isPlainObject(3)).toBe(false);
expect(isPlainObject('hexlet')).toBe(false);
expect(isPlainObject({})).toBe(true);
expect(isPlainObject([])).toBe(false);
});
Решение учителя откроется через:
20:00
