MCPcopy
hub / github.com/jeromegn/Backbone.localStorage / getLocalStorage

Function getLocalStorage

src/utils.js:23–25  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

21 * @returns {Storage} The localstorage
22 */
23export function getLocalStorage(model) {
24 return result(model, 'localStorage') || result(model.collection, 'localStorage');
25}
26
27
28/** Return the window or global object.

Callers 2

syncFunction · 0.90
getSyncMethodFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…