MCPcopy Create free account
hub / github.com/openai/openai-node / isArray

Function isArray

src/internal/utils/values.ts:12–12  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

10};
11
12export let isArray = (val: unknown): val is unknown[] => ((isArray = Array.isArray), isArray(val));
13export let isReadonlyArray = isArray as (val: unknown) => val is readonly unknown[];
14
15/** Returns an object if the given value isn't an object, otherwise returns as-is */

Callers 7

push_to_arrayFunction · 0.90
inner_stringifyFunction · 0.90
stringifyFunction · 0.90
compact_queueFunction · 0.90
mergeFunction · 0.90
maybe_mapFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected