From f1bef3bdb431fe3ad5be04f80130eb14abdba016 Mon Sep 17 00:00:00 2001 From: Teifun2 Date: Mon, 14 Nov 2022 13:53:29 +0100 Subject: [PATCH] Update use.math.ts To Statsify LINT and fix the build: https://eslint.org/docs/latest/rules/no-prototype-builtins --- components/use.math.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/use.math.ts b/components/use.math.ts index a157f1e..0af9c99 100644 --- a/components/use.math.ts +++ b/components/use.math.ts @@ -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] }