MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromIterable

Function fromIterable

packages/effect/src/Array.ts:316–317  ·  view source on GitHub ↗
(collection: Iterable<A>)

Source from the content-addressed store, hash-verified

314 * @since 2.0.0
315 */
316export const fromIterable = <A>(collection: Iterable<A>): Array<A> =>
317 Array.isArray(collection) ? collection : Array.from(collection)
318
319/**
320 * Normalizes a value that is either a single element or an array into an array.

Callers 7

Array.tsFile · 0.70
tailFunction · 0.70
initFunction · 0.70
sortByFunction · 0.70
intersectionWithFunction · 0.70
differenceWithFunction · 0.70
dedupeFunction · 0.70

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected