Skip to content

Commit

Permalink
Have key values be INT not 1 member array.
Browse files Browse the repository at this point in the history
  • Loading branch information
atom-box committed Oct 25, 2021
1 parent 80dfcc6 commit da07064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accentInventer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let invent = function(arr1) {
while (arr2.length > 0){
randomGrabPosition = Math.floor( arr2.length * Math.random() );
originalItem = arr3.shift();
translator[originalItem] = arr2.splice(randomGrabPosition, 1);
translator[originalItem] = arr2.splice(randomGrabPosition, 1)[0];
}
return translator;
}
Expand Down

0 comments on commit da07064

Please sign in to comment.