96
rated 0 times
[
99]
[
3]
/ answers: 1 / hits: 81036
/ 11 Years ago, wed, may 15, 2013, 12:00:00
I have a JSON string as:
var Str=[{ 'label': 'Month'},{ label: 'within'},{ label: 'From'},
{ label: 'Where'},];
I converted it into an objects by eval:
var tagString = eval(Str);
I want to get the index of month without a loop.
Is there a better way to get the index of an object in an array without using loops?
Thanks in advance!
More From » jquery