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

Function transform

test/common/assertSnapshot.js:148–150  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

146}
147
148function transform(...args) {
149 return (str) => args.reduce((acc, fn) => fn(acc), str);
150}
151
152function getSnapshotPath(filename) {
153 const { name, dir } = path.parse(filename);

Calls 2

reduceMethod · 0.80
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…