fortea
Version:
some tools for js, save your time for a cup of tea
17 lines (16 loc) • 402 B
TypeScript
/**
* @name isEmpty
* @description check if value is empty
* @param value
* @returns {boolean} true if value is empty
* @example
* isEmpty(null) // => true
* isEmpty(undefined) // => true
* isEmpty(1) // => false
* isEmpty('') // => true
* isEmpty(' ') // => false
* isEmpty([]) // => true
* isEmpty({}) // => true
*/
declare function isEmpty(value: any): boolean;
export default isEmpty;