These installation procedures will set up your mac with PHP 7.2 and Apache 2.4.
xcode-select --install
console.log('hi!'); |
const flatten = (array) => { | |
if (array.length === 0) { return array } | |
return array.reduce((a, b) => { | |
return a.concat(Array.isArray(b) ? flatten(b) : b) | |
}, []) | |
} |