MCPcopy
hub / github.com/yjs/yjs / typeMapHas

Function typeMapHas

src/ytype.js:1901–1905  ·  view source on GitHub ↗
(parent, key)

Source from the content-addressed store, hash-verified

1899 * @function
1900 */
1901export const typeMapHas = (parent, key) => {
1902 parent.doc ?? warnPrematureAccess()
1903 const val = parent._map.get(key)
1904 return val !== undefined && !val.deleted
1905}
1906
1907/**
1908 * @param {YType<any>} parent

Callers 1

hasAttrMethod · 0.85

Calls 2

warnPrematureAccessFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…