Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-nodes / mapArray

Function: mapArray() ​

mapArray<S, T>(sourceArray, mapperFn): T[]

Defined in: packages/chaingraph-nodes/src/nodes/okx-dex-api/mappers.ts:62

Maps an array of items using the provided mapper function

Type Parameters ​

S ​

S

T ​

T

Parameters ​

sourceArray ​

S[] | undefined

mapperFn ​

(item) => T

Returns ​

T[]

Licensed under BUSL-1.1