On Jan 22, 7:18 pm, Richard Quadling <[email protected]> wrote:
> 2009/1/22 Matt Foster <[email protected]>:
[...]
> I completely misread the Array.without(). I saw the individual
> elements and I must have had a brain fart.

You can, of course, always use `Function.prototype.apply` as a
"workaround" : )

var set1 = [1,2,3,4];
var set2 = [1,3];
var subset = set1.without.apply(set1, set2);

// etc.

[...]

--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to