Skip to main content

Constmap(arr: any, cb: ArrayCB): unknown[]

A non-spec compliant fast Array map.

remarks

This implementation loops in reverse order.

Parameters:#

NameTypeDescription
arranyThe input array-like to map through.
cbArrayCBThe callback provided to produce mapped results. This iteratee is invoked with three arguments: value, index|key, and arr.

Returns: unknown[]

unknown[] - The new mapped array.

Defined in: unsafe/array/map.ts:15

Last updated on