MCPcopy
hub / github.com/ether/etherpad / map

Method map

src/node/utils/Stream.ts:130–131  ·  view source on GitHub ↗

* Like Array.map(). * * @param {(v: any) => any} fn - Value transformation function. * @returns {Stream} A new Stream that yields this Stream's values, transformed by `fn`.

(fn:Function)

Source from the content-addressed store, hash-verified

128 * @returns {Stream} A new Stream that yields this Stream's values, transformed by `fn`.
129 */
130 map(fn:Function) { return new Stream((function* () { // @ts-ignore
131 for (const v of this) yield fn(v); }).call(this)); }
132
133 /**
134 * Implements the JavaScript iterable protocol.

Callers 15

applyChangesetFunction · 0.80
goToRevisionFunction · 0.80
handleMessageFromServerFunction · 0.80
linestylefilter.tsFile · 0.80
setSliderPositionFunction · 0.80
domline.tsFile · 0.80
importTextFunction · 0.80
domAndRepSpliceFunction · 0.80
doRepLineSpliceFunction · 0.80
doIncorpLineSpliceFunction · 0.80

Calls

no outgoing calls

Tested by 3

bodyLinesFunction · 0.64
parseFunction · 0.64