I think any kind of null array should be different from an array of zero length.
It is according to my tests.. It's quite a gotcha.On Mon, 14 May 2012 13:51:40 +0200, deadalnix <deadalnix@gmail.com> wrote:
Le 14/05/2012 12:49, Gor Gyolchanyan a écrit :
So, null arrays and empty arrays are always the same, except for an
empty string, which is a valid non-nill array of characters with length
0, right?
If it is the current behavior, it deserve a WAT !
So check for .length or == "" or == [] if you need "null or empty" and use "is null" for null/[]