1.2.8 • Published 8 months ago

@craftworks/js-utils v1.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@craftworks/js-utils

NPM version Downloads

A JavaScript library that provides useful general-purpose functionalities.

Installation

npm install --save @craftworks/js-utils

API

/**
 * Checks if the given value is defined (not undefined or null).
 *
 * @template Type
 * @param {Type | undefined | null} value - The value to be checked.
 * @returns {boolean} Returns true if the value is defined, otherwise false.
 */
function isDefined<Type>(value: Type | undefined | null): value is Type;

/**
 * Checks if the given value is a number.
 * @param value - The value to be checked.
 * @returns Returns true if the value is a number, otherwise false.
 */
function isNumber(value: unkown): value is number;

/**
 * Checks if a value is a string
 * @param value - The value to be checked.
 * @returns Returns true if the value is a string, otherwise false.
 */
function isString(value: unkown): value is string;

Change Log

See CHANGELOG.md

License

MIT

1.2.8

8 months ago

1.2.7

8 months ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago