@thi.ng/arrays
Version:
Array / Arraylike utilities
16 lines • 578 B
TypeScript
import type { Nullable } from "@thi.ng/api";
/**
* Returns iterator of nullable array w/ optional index range support
* and/or reverse iteration order. The default range covers the entire
* array.
*
* @remarks
* If `start` > `end`, yields values in reverse order. No bounds
* checking is performed.
*
* @param buf - array or null
* @param start - start index
* @param end - end index (excluded)
*/
export declare function arrayIterator<T>(buf: Nullable<ArrayLike<T>>, start?: number, end?: number): Generator<T, void, unknown>;
//# sourceMappingURL=iterator.d.ts.map