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] }