Files
NapCatQQ/.pnpm-store/v3/files/e6/a3a14bf17178c44b2ba9304ababcb43f9535ecd9f3f5be1559f1a7feea3028de81c0cd5a92ed595439386c3e96dbae1d0fcb17271067fdf2cf6a01b73e93c0
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
379 B
Plaintext

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;