Prepare v1.8.2 release

This commit is contained in:
Nick Cipollo
2021-03-21 20:02:09 -04:00
parent 9b14e2e2d3
commit 8f5d96dce1
7101 changed files with 1855611 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
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;