Commit 294d6e0
Optimizations (#41)
* perf: ⚡️ remove redundant instanceof Element check
On the next line tripple equals === should ensure b is instance of
Element.
* perf: ⚡️ remove redundant a === b expression
The very first line of the function already checks `if (a === b) return
true;`, so at this point we know for sure that a !== b1 parent 651f5fd commit 294d6e0
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments