le tableau vide est vrai ou faux
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");