You can use Array.prototype.find() with pure javascript:
var picked = arr.find(o => o.city === 'Amsterdam');
It is currently not compatible with all browsers, you need to check it in your environment (but it should work in NodeJS).
You can use Array.prototype.find() with pure javascript:
var picked = arr.find(o => o.city === 'Amsterdam');
It is currently not compatible with all browsers, you need to check it in your environment (but it should work in NodeJS).