Update use.math.ts

To Statsify LINT and fix the build:
https://eslint.org/docs/latest/rules/no-prototype-builtins
This commit is contained in:
Teifun2 2022-11-14 13:53:29 +01:00 committed by Michael Schramm
parent 535c660f59
commit f1bef3bdb4

View File

@ -9,7 +9,7 @@ export const useMath = (): ((
) => boolean) => {
return (expression, values) => {
const parser = init(formula, (term: string) => {
if (values.hasOwnProperty(term)) {
if (Object.prototype.hasOwnProperty.call(values, term)) {
return values[term]
}