photo by Pat Whelen via

photo by Louis Reed via

photo by Ján Vlačuha via

photo by Erica Steeves via

photo via John Matychuk via

photo by Nik via

image by Michael Dziedzic via

photo by Emily Morter via

photo by Jakob Owens via
1. let a = [1, 1, 2, 3, 3, 4, 5, 5]2. console.log(a.reduce((acc, val) => acc.includes(val) ? acc : [...acc, val], []))
// [1, 2, 3, 4, 5]

photo by Joshua Sortino via

David Polcari

Software Engineer located in Austin, Texas with six years of petroleum engineering experience working for an international oil and gas company.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store