MCPcopy Index your code
hub / github.com/nodejs/node / naturals

Function naturals

test/parallel/test-stream-drop-take.js:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const fromAsync = (...args) => from(...args).map(async (x) => x);
12
13const naturals = () => from(async function*() {
14 let i = 1;
15 while (true) {
16 yield i++;
17 }
18}());
19
20{
21 // Synchronous streams

Callers 1

Calls 1

fromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…