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
//@flow *Ecmascript 6 syntax & require flow syntax checking before build; | |
function flatten (source:Array<any>) : Array<number> { | |
return source.reduce((previous, current) => { | |
let next; | |
if (Array.isArray(current)) { | |
next = flatten(current); | |
} else if (typeof current == 'number') { | |
next = [current]; |
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
Just atom settings.. |