Skip to content
On this page

🥕 数组操作

isEmptyArray

判断是否是空数组

js
/**
 * @function isEmptyArray
 * @description 判断是否是空数组
 * @param {Array} arr
 * @returns {boolean}
 * @example
 * isEmptyArray([]) // true
 * isEmptyArray([1]) // false
 */

Released under the MIT License.