On Mon, 14 May 2012 13:51:40 +0200, deadalnix <[email protected]> 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 !
It is according to my tests.. It's quite a gotcha.So check for .length or == "" or == [] if you need "null or empty" and use "is null" for null/[]
