mo_checkers

mo_checkers is a package that contains functions that check some conditions just to preserve time for other stuff

Usage no npm install needed!

<script type="module">
  import moCheckers from 'https://cdn.skypack.dev/mo_checkers';
</script>

README

"mo_checkers.js

Just to save time for other stuff...;

Description

"mo_checkers.js is a package that contains functions that check some conditions just to preserve time for other stuff.

  • You don't just have the ample time...

installation

npm install "mo_checkers

Usage

...

import { isNumber, isString, isArray, isObject, isFunction } from "mo_checkers"

console.log(isString( "" ))
// true

console.log(isNumber( 20 ))
// true

console.log(isArray( [] ))
// true

console.log(isObject( {} ))
// true

console.log(isFunction( ()=>{} ))
// true

console.log(isObject( [] ))
// false

console.log(isObject( ()=>{} ))
// false

console.log(isObject( null ))
// false

console.log(isObject( undefined ))
// false

...