Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#9453 closed enhancement (fixed)

$.inArray does not support fromIndex

Reported by: Speednet Owned by: rwaldron
Priority: low Milestone: 1.7
Component: core Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by rwaldron)

The $.inArray() function calls the native JavaScript Array.indexOf() function if it's available, but the native function supports an optional second argument of "fromIndex". (See [

The fromIndex argument is very useful, and could be easily added without impacting any existing code from previous versions of jQuery.

Thanks!

Change History (5)

comment:1 Changed 5 years ago by rwaldron

  • Component changed from unfiled to core
  • Milestone changed from 1.next to 1.7
  • Owner set to rwaldron
  • Priority changed from undecided to low
  • Status changed from new to assigned

If no one in Bugs, Core or UI is opposed, I think this is a good suggestion for 1.7

comment:4 Changed 5 years ago by rwaldron

  • Description modified (diff)

so, land mine and yours to get all the work combined hahaha

comment:5 Changed 5 years ago by timmywil

  • Resolution set to fixed
  • Status changed from assigned to closed

Allow second argument to be passed to array.indexOf. Fixes #9453.

Changeset: 2e0c9bfd364d990051fc3de94d7abd4194b6ce7d

Note: See TracTickets for help on using tickets.