Answers for "foreach localstorage"

0

foreach localstorage

const re = /[a-zA-Z]/g;

    Object.keys(localStorage).forEach(function (key) {
      if (key.match(re)) {
        //do something
      }
    });
Posted by: Guest on July-01-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language