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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { type } from '../type.js'import { isArray } from './isArray.js'
export function isFalsy(x){ if (isArray(x)){ return x.length === 0 } if (type(x) === 'Object'){ return Object.keys(x).length === 0 }
return !x}
rambda

Version Info

Tagged at
a year ago