mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-08 15:57:21 +00:00
push all website files
This commit is contained in:
12
website/functions/node_modules/methmeth/index.js
generated
vendored
Normal file
12
website/functions/node_modules/methmeth/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (methodName) {
|
||||
var initialArguments = [].slice.call(arguments, 1);
|
||||
|
||||
return function (item) {
|
||||
if (typeof item[methodName] === 'function') {
|
||||
var invokedArguments = [].slice.call(arguments, 1);
|
||||
return item[methodName].apply(item, initialArguments.concat(invokedArguments));
|
||||
}
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user