UNPKG

js-essential-kit

Version:

This library provides a comprehensive set of utility functions for various common tasks, including date calculations, formatting, masking, normalizing data, and validation

24 lines (23 loc) 496 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNotEmpty = exports.isEmpty = void 0; /** * Check if `array` is not `empty` * * @param array * @returns boolean */ const isEmpty = (array) => { return !array || array.length == 0; }; exports.isEmpty = isEmpty; /** * Check if `array` is not `empty` * * @param array * @returns boolean */ const isNotEmpty = (array) => { return !(0, exports.isEmpty)(array); }; exports.isNotEmpty = isNotEmpty;