Join Carl Peaslee for an in-depth discussion in this video Using array.includes, part of React: ES6, ES2016, and Beyond.
And that's it.…Let's go over what we just did there.…So we're essentially saying let's look…at this new styles string here on line 140…and let's use dot includes to look to see…if it has a string that looks like this, random.…And if it does, then we're going to replace the new styles…variable with a copy of that has had random removed.…And we've replaced it with rando.color,…
- Using const and let
- Importing and exporting modules
- Arrow functions
- Destructing assignments
- Arguments and template literals
- Extended parameter handling with the spread operator
- Generating custom styles
- Classes, getters and setters
Skill Level Intermediate
1. Variables and Declarations
2. Arguments and Template Literals
4. Promises and Async
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.