DevLog.at

Fun with JavaScript

Viewing Single Post (2/2)

Some other functions you can call on your Map include:

map.set('cat','tofu');

map.has('cat'); //true

map.get('cat'); //tofu

map.delete('dog');

map.has('dog'); //false

2m

1 comment on this post

Sign in with GitHub to comment on this post.
Gilbert
1m

Nice! FYI you can use markdown in your posts:

map.set('cat', 'bean curd');