MCPcopy
hub / github.com/yjs/yjs / createMapIterator

Function createMapIterator

src/ytype.js:1959–1962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1957 * @function
1958 */
1959export const createMapIterator = type => {
1960 type.doc ?? warnPrematureAccess()
1961 return iterator.iteratorFilter(type._map.entries(), /** @param {any} entry */ entry => !entry[1].deleted)
1962}

Callers 4

attrKeysMethod · 0.85
attrValuesMethod · 0.85
attrEntriesMethod · 0.85
attrSizeMethod · 0.85

Calls 1

warnPrematureAccessFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…