mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-12 17:25:51 +00:00
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:
parent
535c660f59
commit
f1bef3bdb4
@ -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]
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user