📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-29 09:00:48
📂
/ (Root)
/
home
/
orkouolp
/
nodevenv
/
node_js
/
orkofarms.com
/
18
/
lib
/
node_modules
/
underscore
/
modules
📍 /home/orkouolp/nodevenv/node_js/orkofarms.com/18/lib/node_modules/underscore/modules
🔄 Refresh
✏️
Editing: invoke.js
Writable
import restArguments from './restArguments.js'; import isFunction from './isFunction.js'; import map from './map.js'; import deepGet from './_deepGet.js'; import toPath from './_toPath.js'; // Invoke a method (with arguments) on every item in a collection. export default 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); }); });
💾 Save Changes
❌ Cancel