#So I would need the last one ?

1 messages · Page 1 of 1 (latest)

compact owl
#

So I would need the last one ?

#

[] == ![] // true

gritty nimbus
#

I am saying not to compare with arrays

#

to check if it's an empty array, use if (!array.length) {}

compact owl
#

(!array.length) means that if nothing is in it run {code} or was it the other way around ?

compact owl
#

array should be replaced with Check in my situation

compact owl
#

(array.length) is the situation when the array is not empty..
Thanks for explaining and helping me out