MCPcopy
hub / github.com/Effect-TS/effect / toArray

Function toArray

packages/effect/test/Iterable.test.ts:10–15  ·  view source on GitHub ↗
(i: Iterable<A>)

Source from the content-addressed store, hash-verified

8const symC = Symbol.for("c")
9
10const toArray = <A>(i: Iterable<A>) => {
11 if (Array.isArray(i)) {
12 throw new Error("not an iterable")
13 }
14 return Array.from(i)
15}
16
17describe("Iterable", () => {
18 it("of", () => {

Callers 2

Iterable.test.tsFile · 0.70
assertSingleChunkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…