MCPcopy
hub / github.com/bradtraversy/vanillawebprojects / getCardsData

Function getCardsData

memory-cards/script.js:82–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81// Get cards from local storage
82function getCardsData() {
83 const cards = JSON.parse(localStorage.getItem('cards'));
84 return cards === null ? [] : cards;
85}
86
87// Add card to local storage
88function setCardsData(cards) {

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected