@daiso-tech/core
Version:
The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.
20 lines • 445 B
JavaScript
/**
* @module Utilities
*/
/**
* @internal
*/
export function arrayLikeToIterable(arrayLike) {
return {
*[Symbol.iterator]() {
for (let i = 0; i < arrayLike.length; i++) {
const item = arrayLike[i];
if (item === undefined) {
continue;
}
yield item;
}
},
};
}
//# sourceMappingURL=array-like-to-iterable.js.map