@jysperu/helper-isvaroftype
v1.0.4
Published
Funciones de validación de variable
Downloads
45
Readme
Funciones de validación de variable
Funciones disponibles
/** Returns `true` if the param is empty and not is function or object, `false` otherwise */
function isEmpty(valor: any): boolean;
/** Returns `false` if the param is empty and not is function or object, `true` otherwise */
function isNotEmpty(valor: any): boolean;
/** Returns `true` if the param is function, `false` otherwise */
function isFunction(valor: any): boolean;
/** Returns `true` if the param is empty object, `false` otherwise */
function isEmptyObject(valor: any): boolean;
/** Returns `true` if the param is object, `false` otherwise */
function isObject(value: any): boolean;Instalación
CDN
<script src="https://unpkg.com/@jysperu/helper-isvaroftype@latest/dist/helpers.umd.js"></script>NPM
npm i @jysperu/helper-isvaroftypeUso
Import
import { isEmpty } from "@jysperu/helper-isvaroftype";
// ...Require
const { isEmpty } = require("@jysperu/helper-isvaroftype");
// ...Browser
const { isEmpty } = JCore;
// ...