HI,

> if(restrict) it's a good thing.

Not really a good thing in general as for instance:
if(“”) is false
if(“0”) is true
if(NaN) is false

> Thinking about what to do with null/undefined - It seems to be resolution -
> isn't it?

It casts a much wider net than just null and undefined.

> Maybe not exactly for the case, but in general?

It might be OK in this case as the empty string is treated like null but in 
general best to be avoided I think.

Thanks,
Justin

Reply via email to