MCPcopy Index your code
hub / github.com/documentationjs/documentation / synonym

Function synonym

src/parse.js:459–464  ·  view source on GitHub ↗

* Generate a function that curries a destination key for a flattener * @private * @param {string} key the eventual destination key * @returns {Function} a flattener that remembers that key

(key)

Source from the content-addressed store, hash-verified

457 * @returns {Function} a flattener that remembers that key
458 */
459function synonym(key) {
460 return function (result, tag) {
461 const fun = flatteners[key];
462 fun.apply(null, [result, tag, key].slice(0, fun.length));
463 };
464}
465
466/**
467 * Treat the existence of a tag as a sign to mark `key` as true in the result

Callers 1

parse.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected