Skip to main content

Bug Tracker

Side navigation

#14388 closed bug (duplicate)

Opened September 25, 2013 03:19PM UTC

Closed September 29, 2013 08:38PM UTC

$(selector).every(fn) and $(selector).any(fn) methods would be a nice addition

Reported by: vigneshwaran Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

It will be very convenient if jQuery has .every() and .any() methods.

I gave it a try

var result = $('p').every(function() { return <somecondition> });

is a lot simpler than doing the same with .each() method which requires a for loop every time.

Attachments (0)
Change History (2)

Changed September 25, 2013 04:04PM UTC by vigneshwaran comment:1

Sorry for the duplicate (to #14389). Thought I cancelled the request. Please remove this.

Changed September 29, 2013 08:38PM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

Duplicate of #14389.