Answers for "clear dict javascript"

1

js clear dictionary

yourDict = {"a": 323, "b": 42};
yourDict = {}
Posted by: Guest on May-27-2021
0

clear dict javascript

const clearDict = dict => {
    Object.keys(dict).map(key => delete dict[key]);
  };
Posted by: Guest on September-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language