@bunt/util
Advanced tools
Comparing version 0.24.20 to 0.24.25
@@ -10,2 +10,4 @@ import { Ctor, Newable } from "./interfaces"; | ||
export declare const isNumber: (value: unknown) => value is number; | ||
export declare const isNullish: (value: unknown) => value is null | undefined; | ||
export declare const isNotNullish: <T>(value: T | null | undefined) => value is null | undefined; | ||
export declare const isFunction: <T extends (...args: any) => any>(value: unknown) => value is T; | ||
@@ -12,0 +14,0 @@ export declare const isArrowFunction: <T, A extends any[]>(value: unknown) => value is (...args: A[]) => T; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isFulfilled = exports.isRejected = exports.isInstanceOf = exports.isError = exports.isObject = exports.isClass = exports.isArrowFunction = exports.isFunction = exports.isNumber = exports.isArray = exports.isString = exports.isBoolean = exports.isDefined = exports.isVoid = exports.isUndefined = exports.isNull = void 0; | ||
exports.isFulfilled = exports.isRejected = exports.isInstanceOf = exports.isError = exports.isObject = exports.isClass = exports.isArrowFunction = exports.isFunction = exports.isNotNullish = exports.isNullish = exports.isNumber = exports.isArray = exports.isString = exports.isBoolean = exports.isDefined = exports.isVoid = exports.isUndefined = exports.isNull = void 0; | ||
const isNull = (value) => value === null; | ||
@@ -22,2 +22,6 @@ exports.isNull = isNull; | ||
exports.isNumber = isNumber; | ||
const isNullish = (value) => (0, exports.isNull)(value) || (0, exports.isUndefined)(value); | ||
exports.isNullish = isNullish; | ||
const isNotNullish = (value) => (!((0, exports.isNull)(value) || (0, exports.isUndefined)(value))); | ||
exports.isNotNullish = isNotNullish; | ||
const isFunction = (value) => { | ||
@@ -24,0 +28,0 @@ return typeof value === "function" && !(0, exports.isClass)(value); |
{ | ||
"name": "@bunt/util", | ||
"version": "0.24.20", | ||
"version": "0.24.25", | ||
"keywords": [ | ||
@@ -29,3 +29,3 @@ "typescript" | ||
"license": "MIT", | ||
"gitHead": "8cafe7233aa789c16bb75df8fdc06637a7b1163b" | ||
"gitHead": "da3211786dca4ca020e2bdf17a2f20080ee6f2df" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149123
2276