deno.land / x / rambda@v9.1.1 / source / _internals / isObject.spec.js

isObject.spec.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { isObject } from './isObject.js'
test('happy', () => { expect(isObject({})).toBeTruthy()})
test('with array', () => { expect(isObject([])).toBeFalsy()})
test('with object-alike boolean', () => { expect(isObject(new Boolean(true))).toBeFalsy()})
rambda

Version Info

Tagged at
a year ago