Array kosong itu benar atau salah
const arr = [1];
if (arr) console.log("[] is truethy");
if (arr == false) console.log("however, [] == false");
Tired Trout
const arr = [1];
if (arr) console.log("[] is truethy");
if (arr == false) console.log("however, [] == false");