Skip to content

Instantly share code, notes, and snippets.

@mauroflamig
mauroflamig / JavascriptBooks.md
Created August 20, 2019 13:22 — forked from WebRTCGame/JavascriptBooks.md
Free Javascript Books

Useful Links

23 Free JavaScript Books

A curated collection of awesome & free JavaScript books to help you learn the JavaScript programming language.

If you know of any other free JavaScript books that you think should be on this list, please let me know in the comments section and I will get them added.

@mauroflamig
mauroflamig / flattenArray.js
Created July 24, 2019 20:17
Flatten Array function
// The most straightforward way to do it is using recursion and reduce
// In each iteration of the function we go deeper or return the element as an array
// Subsequently we concat the arrays and finally get a complete flatten array
const flattenArray = (array) => Array.isArray(array) ? array.reduce( (a, b) => a.concat(flattenArray(b)) , []) : [array];