UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

13 lines (12 loc) 484 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isObject = void 0; const isDate_js_1 = require("./isDate.js"); const isNullOrUndefined_js_1 = require("./isNullOrUndefined.js"); /** * Determines whether a given value is an object */ function isObject(value) { return !(0, isNullOrUndefined_js_1.isNullOrUndefined)(value) && typeof value === 'object' && !Array.isArray(value) && !(0, isDate_js_1.isDate)(value); } exports.isObject = isObject;