finding specific word in array Javascript
["2013 Sea Ray 190 Sport",
"2013 Sea Ray 205 Sport",
"2013 Sea Ray 210 SLX",
"2013 Sea Ray 220 Sundeck",
"2013 Sea Ray 220 Sundeck Outboard"]
I want to go through all the objects in the array and list all the ones
that include the word 'Sport' only, in this case I should only have the
following list returned
["2013 Sea Ray 190 Sport",
"2013 Sea Ray 205 Sport"]
How can I go about doing this using underscore.js?
No comments:
Post a Comment