PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
mout
/
lang
var isArray = require('./isArray'); /** * covert value into number if numeric */ function toNumber(val){ // numberic values should come first because of -0 if (typeof val === 'number') return val; // we want all falsy values (besides -0) to return zero to avoid // headaches if (!val) return 0; if (typeof val === 'string') return parseFloat(val); // arrays are edge cases. `Number([4]) === 4` if (isArray(val)) return NaN; return Number(val); } module.exports = toNumber;
[-] isBoolean.js
[edit]
[-] isInteger.js
[edit]
[-] isRegExp.js
[edit]
[-] ctorApply.js
[edit]
[-] toString.js
[edit]
[-] toArray.js
[edit]
[-] toNumber.js
[edit]
[-] is.js
[edit]
[+]
..
[-] inheritPrototype.js
[edit]
[-] GLOBAL.js
[edit]
[-] deepClone.js
[edit]
[-] isFinite.js
[edit]
[-] isObject.js
[edit]
[-] isUndefined.js
[edit]
[-] isDate.js
[edit]
[-] isPlainObject.js
[edit]
[-] isArguments.js
[edit]
[-] kindOf.js
[edit]
[-] isPrimitive.js
[edit]
[-] isString.js
[edit]
[-] isNull.js
[edit]
[-] isNumber.js
[edit]
[-] deepEquals.js
[edit]
[-] isNaN.js
[edit]
[-] isnt.js
[edit]
[-] isArray.js
[edit]
[-] isKind.js
[edit]
[-] isEmpty.js
[edit]
[-] defaults.js
[edit]
[-] createObject.js
[edit]
[-] isFunction.js
[edit]
[-] clone.js
[edit]