2

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

Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294

1 Answers1

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