This commit is contained in:
Stephen Franceschelli
2019-07-15 13:24:14 -04:00
parent e3283467a1
commit 9ea2679ca7
7043 changed files with 0 additions and 1866383 deletions

View File

@@ -1,14 +0,0 @@
var isArrayLikeObject = require('./isArrayLikeObject');
/**
* Casts `value` to an empty array if it's not an array like object.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array|Object} Returns the cast array-like object.
*/
function castArrayLikeObject(value) {
return isArrayLikeObject(value) ? value : [];
}
module.exports = castArrayLikeObject;