Skip to content

Latest commit

 

History

History

equal

Acrool JS Utils / Equal

Determining if it's empty (including 0, empty array, blank string, null, empty object), whether it's JSON, and Compose matching.

Features

isEmpty

import {isEmpty} from '@acrool/js-utils/equal';

isEmpty('');
// true

isEmpty(0);
// true

isEmpty(undefined);
// true

isEmpty(null);
// true

isEmpty([]);
// true

isEmpty({});
// true