public/subjects/is
davhojt 5f352f1da2
docs(is): correct grammar
2022-05-01 16:28:27 +01:00
..
README.md docs(is): correct grammar 2022-05-01 16:28:27 +01:00

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 a number.
  • is.nan: value is NaN.
  • is.str: value is a string.
  • is.bool: value is a boolean.
  • is.undef: value is undefined.
  • is.def: value is defined.
  • is.arr: value is an array.
  • is.obj: value is a simple object or null 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 = {}