Skip to content

Instantly share code, notes, and snippets.

Avatar

Bruno Rafael brunorafael8

View GitHub Profile
View gist:7895458f24e0b8b4fb5e4dc6f7221060
### Keybase proof
I hereby claim:
* I am brunorafael8 on github.
* I am brunorafael8 (https://keybase.io/brunorafael8) on keybase.
* I have a public key ASBpcgYxP_-nhZAFT9o4GUF171vly2ERTlYTZ0JRytOu3Qo
To claim this, I am signing this object:
View flatten.js
/**
* Returns a nested array into a flatten single level array
* @param {Array} input a multiple level array
* @return {Array} an one level array of all the elements inside
*/
const result = [];
const flatten = array => {
for (var i = 0; i < array.length; i++) {