Skip to main content
7 events
when toggle format what by license comment
Jan 7, 2020 at 8:37 comment added Anand Raja using .filter() function is the best method in most of the cases
Dec 14, 2017 at 22:30 history edited nickb CC BY-SA 3.0
add IE note
Dec 5, 2017 at 5:58 comment added nickb @Floppy88 Just use Object.keys(yourArrayName), which returns an array. You can use the same technique above to .filter() it down.
Dec 4, 2017 at 9:35 comment added Floppy88 I need to search in Object keys
Dec 4, 2017 at 0:08 history edited nickb CC BY-SA 3.0
updated to be a little more current
Dec 4, 2017 at 0:02 comment added nickb @Floppy88 Well, the original question was for searching within a simple array; it's also a little long in the tooth now (no need for Underscore.) Would you be searching on object values or keys? An example use case would be helpful.
Oct 25, 2012 at 23:45 history answered nickb CC BY-SA 3.0