Hi
I have a json with som item. I want when clicked on any item, that`s come to first. I need recently used show in first. in next time open application
I’m sure this is all crystal clear to you, but you have to remember that this is the absolute first exposure to your situation for everybody reading your post, and it’s therefore really important to write with that audience in mind.
So what do you mean you “have a json”? Where are you getting it from? What is its structure? How are you persisting it?
I’m curious why the loop involving lots of pushing of undefined
exists.