jStorage icon indicating copy to clipboard operation
jStorage copied to clipboard

Add search-by-string on key function

Open doublejosh opened this issue 10 years ago • 3 comments
trafficstars

Allows searching items by key using a string.

$.jStorage.search('my-namespace-values');

doublejosh avatar Aug 12 '15 06:08 doublejosh

Needs testing, adapted from my current addon, related to this issue... https://github.com/andris9/jStorage/issues/52

doublejosh avatar Aug 12 '15 06:08 doublejosh

This approach assumes that jQuery is present while jStorage does not. Would it be possible to do the same thing but without $.extend (and also add a test for it here)?

There's also an awesome fulltext search library for js called lunr.js but I guess for this specific task it would be an overkill.

andris9 avatar Aug 12 '15 08:08 andris9

Zepto has extend in it's core too. Are there other candidate dependencies?

doublejosh avatar Aug 12 '15 17:08 doublejosh