Skip to main content
Module

x/rambda/_internals/isFalsy.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { type } from '../type'import { _isArray } from './_isArray'
export function isFalsy(x){ if (_isArray(x)){ return x.length === 0 } if (type(x) === 'Object'){ return Object.keys(x).length === 0 }
return !x}