Checks if value is an empty object, collection, map, or set.
Values are considered empty if they are:
The value to check.
Returns true if value is empty, else false.
import { isEmpty } from './AcCmLodashUtils'isEmpty(null) // trueisEmpty(undefined) // trueisEmpty('') // trueisEmpty([]) // trueisEmpty({}) // trueisEmpty(new Map()) // trueisEmpty(new Set()) // trueisEmpty('hello') // falseisEmpty([1, 2, 3]) // falseisEmpty({ a: 1 }) // false Copy
import { isEmpty } from './AcCmLodashUtils'isEmpty(null) // trueisEmpty(undefined) // trueisEmpty('') // trueisEmpty([]) // trueisEmpty({}) // trueisEmpty(new Map()) // trueisEmpty(new Set()) // trueisEmpty('hello') // falseisEmpty([1, 2, 3]) // falseisEmpty({ a: 1 }) // false
Checks if value is an empty object, collection, map, or set.
Values are considered empty if they are: