no message

This commit is contained in:
A1300399510
2024-07-22 12:02:37 +08:00
parent 4256fe064b
commit 0647750789
546 changed files with 17137 additions and 142 deletions

View File

@@ -0,0 +1,14 @@
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;