MCPcopy Index your code
hub / github.com/darkreader/darkreader / toArray

Function toArray

src/utils/array.ts:28–34  ·  view source on GitHub ↗
(items: ArrayLike<T>)

Source from the content-addressed store, hash-verified

26// https://jsben.ch/FJ1mO
27// https://jsben.ch/ZmViL
28export function toArray<T>(items: ArrayLike<T>): T[] {
29 const results: T[] = [];
30 for (let i = 0, len = items.length; i < len; i++) {
31 results.push(items[i]);
32 }
33 return results;
34}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected