diff options
Diffstat (limited to 'deps/npm/node_modules/cli-table2/node_modules/lodash/internal/isArrayLike.js')
-rw-r--r-- | deps/npm/node_modules/cli-table2/node_modules/lodash/internal/isArrayLike.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/isArrayLike.js b/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/isArrayLike.js new file mode 100644 index 0000000000..72443cde10 --- /dev/null +++ b/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/isArrayLike.js @@ -0,0 +1,15 @@ +var getLength = require('./getLength'), + isLength = require('./isLength'); + +/** + * Checks if `value` is array-like. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + */ +function isArrayLike(value) { + return value != null && isLength(getLength(value)); +} + +module.exports = isArrayLike; |