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

Function getListStateEntries

src/lib/openFolder.js:1046–1050  ·  view source on GitHub ↗
(listState)

Source from the content-addressed store, hash-verified

1044}
1045
1046function getListStateEntries(listState) {
1047 if (!listState) return [];
1048 if (listState instanceof Map) return Array.from(listState.entries());
1049 return Object.entries(listState);
1050}
1051
1052function setListStateEntry(listState, key, value) {
1053 if (listState instanceof Map) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected