3 ms·
Note: list === [] doesn't do what you expect it to do. It's going to return false all the time because it is comparing the actual objects and not their content.
by vjeux 13y ago
Note: list === [] doesn't do what you expect it to do. It's going to return false all the time because it is comparing the actual objects and not their content.
- sebastianmck 13y agoUse `!list.length` instead.
- STRML 13y agoAh, yeah, of course. That always threw me off, I've been working too much in other languages.