UNPKG

@lfai/egeria-js-commons

Version:

Common module for storing static data such as key value objects, SVGs, icon mappings, API urls.

19 lines (18 loc) 446 B
/** * @param query the string to check length * @param minLength the length to check * return whether the string is longer than minLength * */ const isStringLonger = (query, minLength) => { return query.length >= minLength; }; /** * @param array the array to check * return whether the array is empty or null * */ const isArrayEmpty = (array) => { return !array || array.length === 0; }; export { isArrayEmpty, isStringLonger };