Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/lodash-es/_castArrayLikeObject.js
T

14 lines
379 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
import isArrayLikeObject from './isArrayLikeObject.js';
/**
* 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 : [];
}
export default castArrayLikeObject;