Skip to content

Commit

Permalink
Update prefer-number-is-integer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 5, 2021
1 parent 18d2029 commit 2367c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/prefer-number-is-integer.md
Expand Up @@ -2,7 +2,7 @@

Enforces the use of [Number.isInteger()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger) for checking if a number is an integer.

These different implementations have slightly different behaviours.
These different implementations have slightly different behaviors.

For example:

Expand All @@ -23,7 +23,7 @@ Math.round(value) === value
parseInt(value, 10) === value
~~value === value

// these will all trigger the lint warning
// These will all trigger the lint warning
_.isInteger(value);
lodash.isInteger(value);
underscore.isInteger(value);
Expand Down

0 comments on commit 2367c8f

Please sign in to comment.