Add node modules and new code for release (#57)

Co-authored-by: taakleton <taakleton@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-01-26 17:16:26 -05:00
committed by GitHub
parent da63a48ad7
commit a517f2ff65
8435 changed files with 1764387 additions and 7 deletions

30
node_modules/underscore/cjs/invoke.js generated vendored Normal file
View File

@ -0,0 +1,30 @@
var restArguments = require('./restArguments.js');
var isFunction = require('./isFunction.js');
var map = require('./map.js');
var _deepGet = require('./_deepGet.js');
var _toPath = require('./_toPath.js');
// Invoke a method (with arguments) on every item in a collection.
var invoke = restArguments(function(obj, path, args) {
var contextPath, func;
if (isFunction(path)) {
func = path;
} else {
path = _toPath(path);
contextPath = path.slice(0, -1);
path = path[path.length - 1];
}
return map(obj, function(context) {
var method = func;
if (!method) {
if (contextPath && contextPath.length) {
context = _deepGet(context, contextPath);
}
if (context == null) return void 0;
method = context[path];
}
return method == null ? method : method.apply(context, args);
});
});
module.exports = invoke;