UNPKG

@azure/core-util

Version:
14 lines 475 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * Helper to determine when an input is a generic JS object. * @returns true when input is an object type that is not null, Array, RegExp, or Date. */ export function isObject(input) { return (typeof input === "object" && input !== null && !Array.isArray(input) && !(input instanceof RegExp) && !(input instanceof Date)); } //# sourceMappingURL=object.js.map