MCPcopy
hub / github.com/codeceptjs/CodeceptJS / transform

Function transform

lib/transform.js:5–12  ·  view source on GitHub ↗
(target, value)

Source from the content-addressed store, hash-verified

3}
4
5function transform(target, value) {
6 if (target in transformers) {
7 for (const transform of transformers[target]) {
8 value = transform(value)
9 }
10 }
11 return value
12}
13
14transform.addTransformer = function (target, transformer) {
15 if (target in transformers) {

Callers 1

gherkinParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected