UNPKG

@lopatnov/make-iterable

Version:

How to make object as array? This TypeScript library makes objects as Array like and iterable.

8 lines (7 loc) 244 B
/** * Convert the value to iterable and Array like object. * @param value The value to convert * @returns the value with it's type and any[] */ declare function makeIterable<T>(value: T): T & Array<any>; export default makeIterable;