UNPKG

@thi.ng/arrays

Version:

Array / Arraylike utilities

8 lines 228 B
/** * Attempts to obtain an iterator from `x` and throws error if `x` is * not iterable. * * @param x - */ export declare const ensureIterable: <T = any>(x: any) => Iterable<T>; //# sourceMappingURL=ensure-iterable.d.ts.map