Checking for Value in JS Object
- by pagewil
I have a JS Object like so:
var ob{
1 : {
id:101,
name:'john',
email:'john@email.com'
},
2 : {
id:102,
name:'jim',
email:'jim@email.com'
},
3 : {
id:103,
name:'bob',
email:'bob@email.com'
},
}
I want to check if this JS object already contains a…