📜  js 变量数组空值检查 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:16.978000             🧑  作者: Mango

代码示例1
if (typeof image_array !== 'undefined' && image_array.length > 0) {
    // the array is defined and has at least one element
}