# disallow the Math.trunc method (es/no-math-trunc)

This rule reports ES2015 Math.trunc method as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-math-trunc: error */ const n = Math.trunc(value)
Now loading...

# 📚 References