Error handling with the JavaScript Array#some method

InstructorDomitrius Clark

Share this video with your friends

Send Tweet

Here we will use the some Method from a JavaScript Array to handle throwing an error when we try to create a user object with an email that already exists in an array of users.