Question

How to iterate over a collection of keys stored in the localStorage using jStorage API ?

Was it helpful?

Solution

$.jStorage.index()

Returns all the keys currently in use as an array.

var index = $.jStorage.index();
console.log(index); // ["key1","key2","key3"]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top