Skip to content

Commit

Permalink
Update is.equ to compare booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
AVAVT authored Jun 4, 2024
1 parent 10372e8 commit c7ea682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiber/src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const is = {
// Wrong type or one of the two undefined, doesn't match
if (typeof a !== typeof b || !!a !== !!b) return false
// Atomic, just compare a against b
if (is.str(a) || is.num(a)) return a === b
if (is.str(a) || is.num(a) || is.boo(a)) return a === b
const isObj = is.obj(a)
if (isObj && objects === 'reference') return a === b
const isArr = is.arr(a)
Expand Down

0 comments on commit c7ea682

Please sign in to comment.