PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
inquirer
/
node_modules
/
lodash
/
lang
var arrayCopy = require('../internal/arrayCopy'), getLength = require('../internal/getLength'), isLength = require('../internal/isLength'), values = require('../object/values'); /** * Converts `value` to an array. * * @static * @memberOf _ * @category Lang * @param {*} value The value to convert. * @returns {Array} Returns the converted array. * @example * * (function() { * return _.toArray(arguments).slice(1); * }(1, 2, 3)); * // => [2, 3] */ function toArray(value) { var length = value ? getLength(value) : 0; if (!isLength(length)) { return values(value); } if (!length) { return []; } return arrayCopy(value); } module.exports = toArray;
[-] isBoolean.js
[edit]
[-] isRegExp.js
[edit]
[-] toArray.js
[edit]
[-] gt.js
[edit]
[+]
..
[-] isNative.js
[edit]
[-] isFinite.js
[edit]
[-] isObject.js
[edit]
[-] isUndefined.js
[edit]
[-] isDate.js
[edit]
[-] isError.js
[edit]
[-] isPlainObject.js
[edit]
[-] isTypedArray.js
[edit]
[-] toPlainObject.js
[edit]
[-] isArguments.js
[edit]
[-] eq.js
[edit]
[-] isElement.js
[edit]
[-] gte.js
[edit]
[-] isString.js
[edit]
[-] isNull.js
[edit]
[-] cloneDeep.js
[edit]
[-] lt.js
[edit]
[-] lte.js
[edit]
[-] isNumber.js
[edit]
[-] isNaN.js
[edit]
[-] isArray.js
[edit]
[-] isMatch.js
[edit]
[-] isEmpty.js
[edit]
[-] isFunction.js
[edit]
[-] clone.js
[edit]
[-] isEqual.js
[edit]