Lesson

Error handling with the JavaScript Array#some method

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.

Duration
1 min
Access
Free
Transcript
Needs source

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.