Clear Dict JavaScript

const clearDict = dict => {
    Object.keys(dict).map(key => delete dict[key]);
  };
Hacker Harsha