📜  空数组是真还是假 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:18.344000             🧑  作者: Mango

代码示例1
const arr = [1];
if (arr) console.log("[] is truethy");
if (arr == false) console.log("however, [] == false");