@mapcss/preset-svg
Version:
SVG as CSS for MapCSS
22 lines (21 loc) • 477 B
JavaScript
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 };