extra-array-view
Version:
An array view is a proxy to an underlying array.
12 lines (10 loc) • 336 B
TypeScript
/**
* Convert array range to array view.
* [📘](https://github.com/nodef/extra-array-view/wiki/fromArray)
* @param x an array
* @param i begin index [0]
* @param I end index [|x|]
* @returns proxy-based array view
*/
declare function fromArray<T>(x: T[], i?: number, I?: number): T[];
export { fromArray as from, fromArray };