Repository URL to install this package:
Version:
0.0.2 ▾
|
website-mirror-by-proxy
/
opt
/
website-mirror-by-proxy
/
node_modules
/
lodash
/
_baseCastArrayLikeObject.js
|
---|
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} Returns the array-like object.
*/
function baseCastArrayLikeObject(value) {
return isArrayLikeObject(value) ? value : [];
}
module.exports = baseCastArrayLikeObject;