Day 2 of 365 days of coding! How to flatten, filter, and sort and array in JavaScript. The solution for a popular interview question flatten an array taken one step further to make it an array with only the unique values and have it sorted in numerical order.
here is the blog post for this solution: https://hellodevworld.com/365-days-of...
******************************************************
ℹ Help Links ℹ
recursion: https://javascript.info/recursion
spread: https://developer.mozilla.org/en-US/d...
set: https://developer.mozilla.org/en-US/d...
.filter(): https://developer.mozilla.org/en-US/d...
.isArray(): https://developer.mozilla.org/en-US/d...
concat: https://developer.mozilla.org/en-US/d...
.push(): https://developer.mozilla.org/en-US/d...
.sort(): https://developer.mozilla.org/en-US/d...
typeof(): https://developer.mozilla.org/en-US/d...
.toLowerCase(): https://www.w3schools.com/jsref/jsref...
for loops: https://www.w3schools.com/js/js_loop_...
******************************************************
******************************************************
My Gear: https://kit.co/HelloDevWorld/my-gear
Blog: https://hellodevworld.com/
Facebook: / hellodevworld
Dev.to: https://dev.to/hellodevworldblog
******************************************************
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you!