Answer the question
In order to leave comments, you need to log in
How to take variables by mask localstorage?
I have localstorage variables with keys like TODAY_09022018, TODAY_09022019, TODAY_09022020....
How can I take them into the foreach loop using the TODAY_ mask?
Answer the question
In order to leave comments, you need to log in
for (var key in localStorage){
// сравниваешь key по маске, получаешь getItem нужные.
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question