MCPcopy Index your code
hub / github.com/css/csso / isEqualDeclarations

Function isEqualDeclarations

lib/restructure/utils.js:15–25  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

13}
14
15export function isEqualDeclarations(a, b) {
16 let cursor1 = a.head;
17 let cursor2 = b.head;
18
19 while (cursor1 !== null && cursor2 !== null && cursor1.data.id === cursor2.data.id) {
20 cursor1 = cursor1.next;
21 cursor2 = cursor2.next;
22 }
23
24 return cursor1 === null && cursor2 === null;
25}
26
27export function compareDeclarations(declarations1, declarations2) {
28 const result = {

Callers 2

processRuleFunction · 0.90
processRuleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…