reakit-utils
Version:
Reakit utils
17 lines (16 loc) • 374 B
TypeScript
/**
* Checks whether `arg` is empty or not.
*
* @example
* import { isEmpty } from "reakit-utils";
*
* isEmpty([]); // true
* isEmpty(["a"]); // false
* isEmpty({}); // true
* isEmpty({ a: "a" }); // false
* isEmpty(); // true
* isEmpty(null); // true
* isEmpty(undefined); // true
* isEmpty(""); // true
*/
export declare function isEmpty(arg: any): boolean;