Saturday, April 16, 2016

Javascript useful checks

Check whether the specific value is existed


if(typeof val.images != 'undefined' && val.images.hasOwnProperty('poster_url_300') != null) {
}

No comments:

Post a Comment