',1,2,3'.split(',') creates an empty string for the first element.

Array.clean only gets rid of null values and '' != null

You'll want to use Array.filter.

On Jul 14, 2011, at 6:54 PM, Steve Onnis wrote:

> Why would this not work?
>  
> console.log(Array.from((",1,2,3,4").split(",")).clean())
>  
> The first item is returned as an empty string but i don’t want it there at 
> all...
>  
> Steve

Reply via email to