UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

15 lines 414 B
/** * Gets a length of given object * @param obj{Object|Array=} - source Object or Array * @return {number} * @example * // How to count number of object keys? * const obj = { * key1: "value1", * key2: "value2" * }; * const objLength = getObjLength(obj); * console.log(objLength); // => 2 */ export function getObjLength(obj?: (any | any[]) | undefined): number; //# sourceMappingURL=index.d.ts.map