MCPcopy Index your code
hub / github.com/deployd/deployd / baseToNumber

Function baseToNumber

test-app/public/sinon.js:14837–14845  ·  view source on GitHub ↗

* The base implementation of `_.toNumber` which doesn't ensure correct * conversions of binary, hexadecimal, or octal string values. * * @private * @param {*} value The value to process. * @returns {number} Returns the number.

(value)

Source from the content-addressed store, hash-verified

14835 * @returns {number} Returns the number.
14836 */
14837 function baseToNumber(value) {
14838 if (typeof value == 'number') {
14839 return value;
14840 }
14841 if (isSymbol(value)) {
14842 return NAN;
14843 }
14844 return +value;
14845 }
14846
14847 /**
14848 * The base implementation of `_.toString` which doesn't convert nullish

Callers 1

createMathOperationFunction · 0.85

Calls 1

isSymbolFunction · 0.70

Tested by

no test coverage detected