Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Apr 11, 2024
1 parent e86bef1 commit afd8f97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/rules/prefer-number-properties.md
Expand Up @@ -157,3 +157,8 @@ const foo = NaN;
// eslint unicorn/prefer-number-properties: ["error", {"checkNaN": false}]
const foo = -NaN;
```

```js
// eslint unicorn/prefer-number-properties: ["error", {"checkNaN": true}]
const isNaNFn = value => value !== value
```

0 comments on commit afd8f97

Please sign in to comment.