Refer to: Using map and filter (not reduce) to get unique values of array (JavaScript).
- I need to return all the years (for this example:
[ 2019, 2018, 2017 ]) OR - I need to return the maximum and minimum year (for this example:
2019and2017);
$ node ./index.js
$ docker run --rm -v $(pwd):/app -w /app node node index.js