Open Stuk opened 10 years ago
This may be a valid behavior. The returned value will always be truthy, and may incidentally be useful.
On Tue, Sep 16, 2014 at 9:19 PM, Stuart Knightley notifications@github.com wrote:
new List([1]).some(function () { return "hello" });
should return true, but returns "hello"
— Reply to this email directly or view it on GitHub https://github.com/montagejs/collections/issues/96.
While true (heh), it's not the behaviour of [].some
and [].every
Ah, precedent trumps. Good point.
On Wed, Sep 17, 2014 at 9:04 AM, Stuart Knightley notifications@github.com wrote:
While true (heh), it's not the behaviour of [].some and [].every
— Reply to this email directly or view it on GitHub https://github.com/montagejs/collections/issues/96#issuecomment-55917048 .
should return
true
, but returns"hello"