@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
13 lines • 445 B
TypeScript
/**
* Check if an object is iterable
* @param obj{*}
* @return {boolean}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
* @example
* // How to check for iterability?
* const myDivs = document.querySelectAll("div");
* const isCanBeIterated = isIterable(myDivs);
* console.log(isCanBeIterated); // => true
*/
export function isIterable(obj: any): boolean;
//# sourceMappingURL=index.d.ts.map