sanity-typed
sanity-typed copied to clipboard
GROQ Fix equality between non-literals
Anything that resolves to non-literal number==number
ends up returning true
, where it should return boolean
. I think it should go:
- [ ] If they're both literals, return
true
orfalse
based on if they're equal - [ ] If one of them is non-literal but they're the same type, return
boolean
- [ ] If they're different types, return
false
- [ ] Return the inverse for
!=