mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +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) => {
|
) => boolean) => {
|
||||||
return (expression, values) => {
|
return (expression, values) => {
|
||||||
const parser = init(formula, (term: string) => {
|
const parser = init(formula, (term: string) => {
|
||||||
if (values.hasOwnProperty(term)) {
|
if (Object.prototype.hasOwnProperty.call(values, term)) {
|
||||||
return values[term]
|
return values[term]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user