PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
mout
/
lang
var kindOf = require('./kindOf'); var GLOBAL = require('./GLOBAL'); /** * Convert array-like object into array */ function toArray(val){ var ret = [], kind = kindOf(val), n; if (val != null) { if ( val.length == null || kind === 'String' || kind === 'Function' || kind === 'RegExp' || val === GLOBAL ) { //string, regexp, function have .length but user probably just want //to wrap value into an array.. ret[ret.length] = val; } else { //window returns true on isObject in IE7 and may have length //property. `typeof NodeList` returns `function` on Safari so //we can't use it (#58) n = val.length; while (n--) { ret[n] = val[n]; } } } return ret; } module.exports = toArray;
[-] 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]