Urara-Blog/node_modules/.pnpm-store/v3/files/ec/8b8ffb427fe0468564b5e5c2828afe20a4e09c27fd00fd6adf550cba8cc3961242a474747dfc8e3692be793944a7c02db56e71a7d978c5eb1659ff4cd5369a
2022-08-14 01:14:53 +08:00

14 lines
381 B
Text

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;