Created
May 7, 2019 10:43
-
-
Save faizakram/8405b7af9c2e9eae085ef3b3ac9c47b4 to your computer and use it in GitHub Desktop.
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
const mapToAoO = m => { | |
return Array.from(m).map( ([k,v]) => {return {[k]:v}} ); | |
}; | |
JSON.stringify(mapToAoO(map)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment