@thisisagile/easy
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -7,2 +7,3 @@ import { Constructor } from './Constructor'; | ||
export declare const isObject: (o?: unknown) => o is Object; | ||
export declare const isNotEmptyObject: (o?: unknown) => boolean; | ||
export declare const isFunction: (o?: unknown) => o is Function; | ||
@@ -9,0 +10,0 @@ export declare const isArray: <T = any>(o?: unknown) => o is T[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isPrimitive = exports.isIn = exports.isInstance = exports.isArray = exports.isFunction = exports.isObject = exports.isString = exports.isNotEmpty = exports.isEmpty = exports.isDefined = void 0; | ||
exports.isPrimitive = exports.isIn = exports.isInstance = exports.isArray = exports.isFunction = exports.isNotEmptyObject = exports.isObject = exports.isString = exports.isNotEmpty = exports.isEmpty = exports.isDefined = void 0; | ||
exports.isDefined = (o) => o !== undefined && o !== null; | ||
@@ -9,2 +9,3 @@ exports.isEmpty = (o) => o === '' || o === null || o === undefined; | ||
exports.isObject = (o) => o != null && (typeof o === 'object' || typeof o === 'function') && !exports.isArray(o); | ||
exports.isNotEmptyObject = (o) => exports.isObject(o) && Object.getOwnPropertyNames(o).length > 0; | ||
exports.isFunction = (o) => exports.isDefined(o) && o instanceof Function; | ||
@@ -11,0 +12,0 @@ exports.isArray = (o) => exports.isDefined(o) && o instanceof Array; |
{ | ||
"name": "@thisisagile/easy", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Straightforward library for building domain-driven microservice architectures", | ||
@@ -5,0 +5,0 @@ "author": "Sander Hoogendoorn", |
@@ -13,2 +13,4 @@ import { Constructor } from './Constructor'; | ||
export const isNotEmptyObject = (o?: unknown): boolean => isObject(o) && Object.getOwnPropertyNames(o).length > 0; | ||
export const isFunction = (o?: unknown): o is Function => isDefined(o) && o instanceof Function; | ||
@@ -15,0 +17,0 @@ |
Sorry, the diff of this file is not supported yet
88566
1287