UNPKG

@storm-stack/types

Version:

⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

10 lines (9 loc) 427 B
import { isNonNullObject } from "./is-non-null-object.mjs"; import { isReactElement } from "./is-react-element.mjs"; const isSpecialType = (value) => { const stringValue = Object.prototype.toString.call(value); return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value); }; export const isMergeableObject = (value) => { return isNonNullObject(value) && !isSpecialType(value); };