@thisisagile/easy
Advanced tools
Comparing version 1.23.1 to 1.23.2
@@ -6,2 +6,4 @@ import { Constructor } from './Constructor'; | ||
export declare const isString: (o?: unknown) => o is string; | ||
export declare const isBoolean: (o?: unknown) => o is boolean; | ||
export declare const isNumber: (o?: unknown) => o is number; | ||
export declare const isObject: (o?: unknown) => boolean; | ||
@@ -8,0 +10,0 @@ export declare const isEmptyObject: (o?: unknown) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isPrimitive = exports.isIn = exports.isInstance = exports.isArray = exports.isFunction = exports.isEmptyObject = exports.isObject = exports.isString = exports.isNotEmpty = exports.isEmpty = exports.isDefined = void 0; | ||
exports.isPrimitive = exports.isIn = exports.isInstance = exports.isArray = exports.isFunction = exports.isEmptyObject = exports.isObject = exports.isNumber = exports.isBoolean = exports.isString = exports.isNotEmpty = exports.isEmpty = exports.isDefined = void 0; | ||
const isDefined = (o) => o !== undefined && o !== null; | ||
@@ -12,2 +12,6 @@ exports.isDefined = isDefined; | ||
exports.isString = isString; | ||
const isBoolean = (o) => exports.isDefined(o) && typeof o === 'boolean'; | ||
exports.isBoolean = isBoolean; | ||
const isNumber = (o) => exports.isDefined(o) && typeof o === 'number' && !Number.isNaN(o); | ||
exports.isNumber = isNumber; | ||
const isObject = (o) => o != null && (typeof o === 'object' || typeof o === 'function') && !exports.isArray(o); | ||
@@ -14,0 +18,0 @@ exports.isObject = isObject; |
{ | ||
"name": "@thisisagile/easy", | ||
"version": "1.23.1", | ||
"version": "1.23.2", | ||
"description": "Straightforward library for building domain-driven microservice architectures", | ||
@@ -5,0 +5,0 @@ "author": "Sander Hoogendoorn", |
@@ -11,2 +11,6 @@ import { Constructor } from './Constructor'; | ||
export const isBoolean = (o?: unknown): o is boolean => isDefined(o) && typeof o === 'boolean'; | ||
export const isNumber = (o?: unknown): o is number => isDefined(o) && typeof o === 'number' && !Number.isNaN(o); | ||
export const isObject = (o?: unknown): boolean => o != null && (typeof o === 'object' || typeof o === 'function') && !isArray(o); | ||
@@ -13,0 +17,0 @@ |
Sorry, the diff of this file is not supported yet
194054
3054