UNPKG

@mapcss/preset-svg

Version:
22 lines (21 loc) 477 B
import { isNull } from "../isNull/mod.js"; /** * Whatever argument is type of `object` or not * * @param value - Input any value * @returns The result of `typeof value === "object" && value !== null` * * @example * ```ts * import { isObject } from './mod.ts' * isObject({}) // true * isObject(null) // false * ``` * * @beta */ // deno-lint-ignore ban-types function isObject(value) { return typeof value === "object" && !isNull(value); } export { isObject };