I\'m writing a node program where I input an id (required) and an attribute (optional) and the function iterates through an array of objects until it finds an object that ha