What: Revert back to using Object.hasOwnProperty instead of Object.hasOwnWhy: Object.hasOwn is still unsupported by some older legacy browsers that were supported before this change.
How: Reverted back the two changed lines and disabled the prefer-object-has-own in the eslint config (could also do this line-by-line, but this prevents it from accidentally being re-introduced in the project).
Keeping support for older browsers by reverting the change to
Object.hasOwn
and disabling the eslint rule for the project.Fixes: https://github.com/kentcdodds/match-sorter/issues/150
What: Revert back to using
Object.hasOwnProperty
instead ofObject.hasOwn
Why:Object.hasOwn
is still unsupported by some older legacy browsers that were supported before this change. How: Reverted back the two changed lines and disabled theprefer-object-has-own
in the eslint config (could also do this line-by-line, but this prevents it from accidentally being re-introduced in the project).Checklist: