Answers for "empty array is true or false"

0

empty array is true or false

const arr = [1];
if (arr) console.log("[] is truethy");
if (arr == false) console.log("however, [] == false");
Posted by: Guest on April-01-2021

Code answers related to "empty array is true or false"

Browse Popular Code Answers by Language