diff options
Diffstat (limited to 'includes/external/school/node_modules/lodash/_createRelationalOperation.js')
-rw-r--r-- | includes/external/school/node_modules/lodash/_createRelationalOperation.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/includes/external/school/node_modules/lodash/_createRelationalOperation.js b/includes/external/school/node_modules/lodash/_createRelationalOperation.js deleted file mode 100644 index a17c6b5..0000000 --- a/includes/external/school/node_modules/lodash/_createRelationalOperation.js +++ /dev/null @@ -1,20 +0,0 @@ -var toNumber = require('./toNumber'); - -/** - * Creates a function that performs a relational operation on two values. - * - * @private - * @param {Function} operator The function to perform the operation. - * @returns {Function} Returns the new relational operation function. - */ -function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == 'string' && typeof other == 'string')) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; -} - -module.exports = createRelationalOperation; |