This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert('moi!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init() { | |
return console.log('jee') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UTILITY | |
const cars = [ | |
{ type: 'mazda', driven: 14020, active: true }, | |
{ type: 'volvo', driven: 404324, active: false }, | |
{ type: 'nissan', driven: 135223, active: true } | |
]; | |
// MAP FUNCTIONS | |
const shnigimap = (arr, mapfunc) => { | |
const resultArray = []; |