mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xpetit
def316d0f3
|
4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago |
README.md
Is
Instructions
Add new function properties to the object is
to check a value type
is.num
value is a numberis.nan
value is NaNis.str
value is a stringis.bool
value is a booleanis.undef
value is undefinedis.def
value is definedis.arr
value is an arrayis.obj
value is a simple object or null objectsis.fun
value is a functionis.truthy
value is truthyis.falsy
value is falsy
Notions
- nan-academy.github.io/js-training/examples/primitive-and-operators
- devdocs.io/javascript/operators/typeof
- developer.mozilla.org/en-US/docs/Glossary/Truthy
- developer.mozilla.org/en-US/docs/Glossary/Falsy
Code provided
all code provided will be added to your solution and doesn't need to be submited.
const is = {}