MCPcopy Create free account
hub / github.com/nodejs/node / iterableWith

Function iterableWith

test/parallel/test-fs-promises-writefile.js:36–42  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

34};
35
36function iterableWith(value) {
37 return {
38 *[Symbol.iterator]() {
39 yield value;
40 }
41 };
42}
43const bufferIterable = {
44 expected: 'abc',
45 *[Symbol.iterator]() {

Callers 1

doWriteInvalidIterableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected