diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-25 12:10:39 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-25 12:10:39 +0530 |
commit | 4f27eefd6ec24a2644e674850f5a2b5d4928b168 (patch) | |
tree | 26067f67ef4d25b2b0d84b26d72432b1cade5825 /backend/node_modules/lodash.isnumber/index.js | |
parent | c00ac1ff51c795d4d93c32e0a913e2cebf917d0c (diff) | |
download | admin-panel-4f27eefd6ec24a2644e674850f5a2b5d4928b168.tar.gz admin-panel-4f27eefd6ec24a2644e674850f5a2b5d4928b168.tar.bz2 admin-panel-4f27eefd6ec24a2644e674850f5a2b5d4928b168.zip |
added .gitignore
Diffstat (limited to 'backend/node_modules/lodash.isnumber/index.js')
-rw-r--r-- | backend/node_modules/lodash.isnumber/index.js | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/backend/node_modules/lodash.isnumber/index.js b/backend/node_modules/lodash.isnumber/index.js deleted file mode 100644 index 35a8573..0000000 --- a/backend/node_modules/lodash.isnumber/index.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * lodash 3.0.3 (Custom Build) <https://lodash.com/> - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> - * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license <https://lodash.com/license> - */ - -/** `Object#toString` result references. */ -var numberTag = '[object Number]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `Number` primitive or object. - * - * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified - * as numbers, use the `_.isFinite` method. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isNumber(3); - * // => true - * - * _.isNumber(Number.MIN_VALUE); - * // => true - * - * _.isNumber(Infinity); - * // => true - * - * _.isNumber('3'); - * // => false - */ -function isNumber(value) { - return typeof value == 'number' || - (isObjectLike(value) && objectToString.call(value) == numberTag); -} - -module.exports = isNumber; |