In this video I'll be taking you step by step in detail how I solved the "Sorted Union" challenge in 2 easy steps using javascript on FreeCodeCamp.
This is a great video to practice using array methods.
The steps I took to complete this challenge are as follows(I go into more detail in the video):
STEP 1
Put all arguments into one array.
STEP 2
Filter all the non-unique values.
Useful links:
spread syntax: https://goo.gl/Nqm4ay
concat(): https://goo.gl/VL3w4p
reduce(): https://goo.gl/QFWULd
filter(): https://goo.gl/dhnFSv
arguments object: https://goo.gl/GqYABf
Download
0 formats
No download links available.
FreeCodeCamp - Sorted Union - SOLVED IN 2 EASY STEPS! | NatokHD