MCPcopy Create free account
hub / github.com/coolvasanth/reactjs_interview_preparation / storeElementInfo

Function storeElementInfo

src/EpamRound1/Excercise6.js:59–61  ·  view source on GitHub ↗
(element, data)

Source from the content-addressed store, hash-verified

57const elementData = new WeakMap();
58
59function storeElementInfo(element, data) {
60 elementData.set(element, data);
61}
62
63function retrieveElementInfo(element) {
64 return elementData.get(element);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected