MCPcopy Create free account
hub / github.com/TruthHun/BookStack / mapObject

Function mapObject

static/word2md/mammoth.browser.js:3759–3765  ·  view source on GitHub ↗
(input, valueFunc, keyFunc)

Source from the content-addressed store, hash-verified

3757}
3758
3759function mapObject(input, valueFunc, keyFunc) {
3760 return _.reduce(input, function(result, value, key) {
3761 var mappedKey = keyFunc(value, key, input);
3762 result[mappedKey] = valueFunc(value, key, input);
3763 return result;
3764 }, {});
3765}
3766
3767},{"../promises":23,"./nodes":35,"sax":150,"underscore":153}],37:[function(require,module,exports){
3768var _ = require("underscore");

Callers 1

readStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected