Let me try that again as i forgot a key bit :) Array.from will create the
blank string value to fill in for undefined

the console out put from your code   ["", "1", "2", "3", "4"]. As to why it
does that the mootools devs will know better then me. I just know it does it
:D



On Thu, Jul 14, 2011 at 9:02 PM, Paul Saukas <[email protected]> wrote:

> Because just '' has defind a blank string value. Clen will only remove a
> NULL or an Undefined value. you will want erase to get the effect you are
> looking for
>
> console.log(Array.from((",1,2,3,4,").split(",")).erase(''))
>
>
> On Thu, Jul 14, 2011 at 8:54 PM, Steve Onnis <[email protected]>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