@boost/commonFunctionsisEmptyisEmpty CallableisEmpty(value: unknown): booleanReturns true if an object has no properties, an array has no items, or the value is falsy, otherwise, it returns false. import { isEmpty } from '@boost/common';isEmpty({}); // trueisEmpty({ name: 'Boost' }); // falseisEmpty([]); // trueisEmpty(['Boost']); // false
Returns
true
if an object has no properties, an array has no items, or the value is falsy, otherwise, it returnsfalse
.