1.2.0 • Published 5 years ago

elenchus v1.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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

MethodDescription
isArrayAndNotEmpty(param: any): booleanChecks type and length
isNullOrUndefined(param: any): booleanChecks type
isStringAndNotEmpty(param: any): booleanChecks type and value
1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago