Skip to main content
Version: 6.5.0

isObject

Description

isObject

Parameters

NameTypeDescription
input*variable to validate

Returns

    boolean true/false

Examples

turf.isObject({ elevation: 10 });
//=true
turf.isObject("foo");
//=false

Installation

$ npm install @turf/helpers

import { isObject } from "@turf/helpers";
const result = isObject(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.isObject(...);