# array Locked, prototype-pollution-resistant copies of the global `Array` static methods. References to `Array.isArray`, `Array.from`, and `Array.of` are captured at module-load time and frozen into a tamper-proof namespace, so downstream code keeps working even if the global `Array` is later patched. Effective only when imported before any untrusted code has had a chance to mutate the prototype chain. ## API Reference ### Variables #### Array (Safe copy) Namespace object containing all Array static methods. Note: Importing this imports all methods in this namespace (no tree-shaking). ```typescript const Array: Readonly<{ from: (arrayLike: ArrayLike) => T[]; isArray: (arg: any) => unknown; of: (items: T[]) => T[] }> ``` **Value** `...` #### from (Safe copy) Creates an array from an array-like or iterable object. ```typescript const from: (arrayLike: ArrayLike) => T[] ``` **Value** `_Array.from` #### isArray (Safe copy) Determines whether the passed value is an Array. ```typescript const isArray: (arg: any) => unknown ``` **Value** `_Array.isArray` #### of (Safe copy) Creates a new Array instance from a variable number of arguments. ```typescript const of: (items: T[]) => T[] ``` **Value** `_Array.of` --- Canonical page: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/array/ This file: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/array.md Documentation index: https://www.hyperfrontend.dev/llms.txt