@craftworks/craftworks-library-js
A JavaScript library used at craftworks
Installation
npm install --save @craftworks/craftworks-library-js
API
/**
* Checks if a value is defined
*
* A value is not defined if
* value === undefined || value === null
*/
function isDefined<Type>(value: Type | undefined | null): value is Type;
/**
* Checks if a value is a number
*
* According to the JavaScript definition, NaN and Infinity are considered valid numbers
*/
function isNumber(value: unkown): value is number;
/**
* Checks if a value is a string
*/
function isString(value: unkown): value is string;