MCPcopy Create free account
hub / github.com/tree-sitter/tree-sitter-javascript / objectsEqual

Function objectsEqual

examples/text-editor-component.js:4316–4328  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

4314}
4315
4316function objectsEqual (a, b) {
4317 if (!a && b) return false
4318 if (a && !b) return false
4319 if (a && b) {
4320 for (const key in a) {
4321 if (a[key] !== b[key]) return false
4322 }
4323 for (const key in b) {
4324 if (a[key] !== b[key]) return false
4325 }
4326 }
4327 return true
4328}
4329
4330function constrainRangeToRows (range, startRow, endRow) {
4331 if (range.start.row < startRow || range.end.row >= endRow) {

Callers 1

textDecorationsEqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…