How to determine if Javascript array contains an object with an attribute that equals a given value

Published --