elenchus

1.2.0 • Public • Published

elenchus

CircleCI minified size minified size dependencies Status devDependencies Status code style: prettier

“There is only one good, knowledge, and one evil, ignorance.”

Named after the Socratic method of hypothesis elimination, where a series of questions formulated as tests of logic and fact intended to help discover general characteristics of particular instances. More


Description

A collection of predicate functions to serve as lightweight utils.

Installation

Using npm:

$ npm install elenchus

Using yarn:

$ yarn add elenchus

Usage

const elenchus = require("elenchus");
elenchus.isNullOrUndefined("I know that I know nothing");
// => false

Individual methods

const isNullOrUndefined = require("elenchus").isNullOrUndefined;
isNullOrUndefined("The unexamined life is not worth living");
// => false

Methods

Method Description
isArrayAndNotEmpty(param: any): boolean Checks type and length
isNullOrUndefined(param: any): boolean Checks type
isStringAndNotEmpty(param: any): boolean Checks type and value

/elenchus/

    Package Sidebar

    Install

    npm i elenchus

    Weekly Downloads

    0

    Version

    1.2.0

    License

    ISC

    Unpacked Size

    25.9 kB

    Total Files

    20

    Last publish

    Collaborators

    • lorenzo.koundouris