Default key "code" added to dna.array.toMap()
Default key "code" added to dna.array.toMap()

var array = [{ code: 'a', word: 'Ant' }, { code: 'b', word: 'Bat' }];
console.log(dna.array.toMap(array));
   --> { a: { word: 'Ant' }, b: { word: 'Bat' }}

dnajs/dna.js,dnajs/dna.js,dnajs/dna.js,dnajs/dna.js,dnajs/dna.js