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.
davhojt
5f352f1da2
|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago |
README.md
Is
Instructions
Add new function properties to the is
object to check value types. Each function should take one argument, and return a boolean
.
is.num
: value is anumber
.is.nan
: value isNaN
.is.str
: value is astring
.is.bool
: value is aboolean
.is.undef
: value isundefined
.is.def
: value is defined.is.arr
: value is anarray
.is.obj
: value is a simple object ornull
objects.is.fun
: value is a function.is.truthy
: value is truthy.is.falsy
: value is falsy.
Notions
Code provided
The provided code will be added to your solution, and does not need to be submitted.
const is = {}