Last active
July 1, 2018 15:17
-
-
Save nairihar/d429feda9190eb70a2bd8b8b6003af36 to your computer and use it in GitHub Desktop.
JavaScript series, part 2, Map, medium
This file contains hidden or 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 obj = {}; | |
const arr1 = []; | |
const arr2 = []; | |
obj[arr1] = 1; | |
obj[arr2] = 2; | |
console.log(obj); | |
// {"": 2} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment