isObject
Description
isObject
Parameters
Name | Type | Description |
---|---|---|
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(...);