@qntm-code/utils
Version:
A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.
9 lines (8 loc) • 301 B
JavaScript
import { isDate } from './isDate.js';
import { isNullOrUndefined } from './isNullOrUndefined.js';
/**
* Determines whether a given value is an object
*/
export function isObject(value) {
return !isNullOrUndefined(value) && typeof value === 'object' && !Array.isArray(value) && !isDate(value);
}