🗿 Mini jQuery alternative. Dependency-free animations. Locality of Behavior. Use one element or arrays transparently. Pairs with htmx. Vanilla querySelector() but better!
▲ [WARNING] Comparison using the "===" operator here is always false [equals-new-object]
deps/.downloaded/surreal/script.js:92:22:
92 │ if (e === null || e === []) return null
╵ ~~~
Equality with a new object is always false in JavaScript because the equality operator tests
object identity. You need to write code to compare the contents of the object instead. For
example, use "Array.isArray(x) && x.length === 0" instead of "x === []" to test for an empty
array.
I wonder if there's a particular reason you included it in there?
I get this warning from esbuild:
I wonder if there's a particular reason you included it in there?