Join Leigh Lawhon for an in-depth discussion in this video Filter null values, part of Web Portfolio Projects: Sortable Table and Arrays.
- [Woman] Next, We'll only sort the values that are not null…like we did in our previous function.…But let's break that out in to it's own functions…since we'll be doing that for all the sorts we build.…On Line 127, we'll build a const…and call it items not null…and that's going to be…equal to the function filter…null and that's a function that's…already been started for us.…We'll pass into that. The sorter index…and to get this sorter index, you'll see that I'm using…another array method index of on the headers array.…
And I'm passing in the very first…sorter from the sorter well.…So for instance, if I drag an area, I'll get it's…index which is one and then I'll use it to get the value.…Let's build out our filter null function.…We'll take the items variable we created here,…We'll move it down to our filter null.…Next we'll take that array,…We're going to return the items with a filter on it.…And like the sort method, it gets a function…and we'll pass in the parameter of row.…
So this will iterate through each row of our data.…
- Sorting your table efficiently
- Filtering null values and sorting nodes
- Sorting algorithms, including merge sort and insertion sort
- Performance testing
- Creating your own algorithm
- Design components
- Adding icons
Skill Level Intermediate
Workflow Tools for Web Developerswith Christina Truong1h 13m Intermediate
What you should know1m 33s
1. Getting Started
2. Sorting Our Table Efficiently
3. Sorting Algorithms
4. Creating Our Own Algorithm
- 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.