-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add len method to expose store length (#47)
- Loading branch information
Showing
8 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* storejs v2.0.7 | ||
* Local storage localstorage package provides a simple API | ||
* | ||
* Copyright (c) 2023 kenny wang <[email protected]> | ||
* Copyright (c) 2024 kenny wang <[email protected]> | ||
* https://jaywcjlove.github.io/store.js/ | ||
* | ||
* Licensed under the MIT license. | ||
|
@@ -144,6 +144,9 @@ Store.prototype = { | |
if (arr[i].indexOf(str) > -1) dt[arr[i]] = this.get(arr[i]); | ||
} | ||
return dt; | ||
}, | ||
len: function len() { | ||
return storage.length; | ||
} | ||
}; | ||
var _Store = null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* storejs v2.0.7 | ||
* Local storage localstorage package provides a simple API | ||
* | ||
* Copyright (c) 2023 kenny wang <[email protected]> | ||
* Copyright (c) 2024 kenny wang <[email protected]> | ||
* https://jaywcjlove.github.io/store.js/ | ||
* | ||
* Licensed under the MIT license. | ||
|
@@ -142,6 +142,9 @@ Store.prototype = { | |
if (arr[i].indexOf(str) > -1) dt[arr[i]] = this.get(arr[i]); | ||
} | ||
return dt; | ||
}, | ||
len: function len() { | ||
return storage.length; | ||
} | ||
}; | ||
var _Store = null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* storejs v2.0.7 | ||
* Local storage localstorage package provides a simple API | ||
* | ||
* Copyright (c) 2023 kenny wang <[email protected]> | ||
* Copyright (c) 2024 kenny wang <[email protected]> | ||
* https://jaywcjlove.github.io/store.js/ | ||
* | ||
* Licensed under the MIT license. | ||
|
@@ -148,6 +148,9 @@ | |
if (arr[i].indexOf(str) > -1) dt[arr[i]] = this.get(arr[i]); | ||
} | ||
return dt; | ||
}, | ||
len: function len() { | ||
return storage.length; | ||
} | ||
}; | ||
var _Store = null; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters