This Gist was automatically created by Carbide, a free online programming environment.
Last active
May 21, 2018 00:32
-
-
Save carbide-public/8943be92c3a1020c98f5a299f6a295b9 to your computer and use it in GitHub Desktop.
untitled
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
let flats = ['des','ees','fes','ges','aes','bes','ces']; | |
let sharps = ['cis','dis','eis','fis','gis','ais','bis']; | |
var pairz = flats.map(function(note,index) {return [note, sharps[index]]; }); | |
let objectify = a => a.reduce( (o,[k,v]) => (o[k]=v,o), {} ); | |
let pariObject = objectify(pairz); | |
pariObject.des; | |
pairz[3]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment