From 7f220e4b039ff669f46415decbf39cb62b7e77ff Mon Sep 17 00:00:00 2001 From: nprimo Date: Thu, 1 Sep 2022 11:00:03 +0100 Subject: [PATCH] docs(is): Add examples --- subjects/is/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/subjects/is/README.md b/subjects/is/README.md index bedc1102..7ea2e79c 100644 --- a/subjects/is/README.md +++ b/subjects/is/README.md @@ -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)