A javascript library for working with objects
Tests if an object or array has any set keys. The values of each key are not considered.
Param | Type |
---|---|
item | * |
Example
import { isEmpty } from 'object-agent';
isEmpty(['a', 1, 'b']);
// => false
isEmpty([]);
// => true
isEmpty({ a: 'b' });
// => false
isEmpty({});
// => true
isEmpty(null);
// => true
isEmpty(undefined);
// => true