MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / setListStateEntry

Function setListStateEntry

src/lib/openFolder.js:1052–1059  ·  view source on GitHub ↗
(listState, key, value)

Source from the content-addressed store, hash-verified

1050}
1051
1052function setListStateEntry(listState, key, value) {
1053 if (listState instanceof Map) {
1054 listState.set(key, value);
1055 return;
1056 }
1057
1058 listState[key] = value;
1059}
1060
1061function deleteListStateEntry(listState, key) {
1062 if (listState instanceof Map) {

Callers 1

Calls 1

setMethod · 0.80

Tested by

no test coverage detected