docs(is): Add examples

This commit is contained in:
nprimo 2022-09-01 11:00:03 +01:00 committed by Niccolò Primo
parent 26503936d4
commit 7f220e4b03
1 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,16 @@ Add new function properties to the `is` object to check value types. Each functi
- `is.truthy`: value is truthy.
- `is.falsy`: value is falsy.
### Examples
```js
console.log(is.num(5))
// output: true
console.log(is.num('ciao'))
// output: false
```
### Notions
- [Primitives and operators](https://nan-academy.github.io/js-training/examples/primitive-and-operators.js)