How to iterate over a collection of keys stored in the localStorage using jStorage
API ?
Asked
Active
Viewed 197 times
2

Rajat Gupta
- 25,853
- 63
- 179
- 294
1 Answers
1
$.jStorage.index()
Returns all the keys currently in use as an array.
var index = $.jStorage.index();
console.log(index); // ["key1","key2","key3"]

Aklin
- 2,621
- 2
- 17
- 17