Skip to content

Instantly share code, notes, and snippets.

@yschen25
Last active April 6, 2022 23:39
let map = new Map();
map.set('1', 'str1'); // A string key
map.set(1, 'num1'); // A numeric key
map.set(true, 'bool1'); // A boolean key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment