You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I think Object.keys will do you:

    Object.keys(replaceList).forEach(e => {
      timeN = timeN.replace(e,replaceList[e]);
    });
    
About

Avatar for Gordon @Gordon started