diff --git a/snippets/validateNumber.md b/snippets/validateNumber.md index b6806c095..44e1627cd 100644 --- a/snippets/validateNumber.md +++ b/snippets/validateNumber.md @@ -12,7 +12,7 @@ Checks if the given value is a number. - Use `parseFloat()` to try to convert `n` to a number. - Use `Number.isNaN()` and logical not (`!`) operator to check if `num` is a number. - Use `Number.isFinite()` to check if `num` is finite. -- Use `Number()` and the loose equality operator (`==`) to check if the coercion holds. +- Use `Number` and the loose equality operator (`==`) to check if the coercion holds. ```js const validateNumber = n => {