isNumber
Description
isNumber
Parameters
Name | Type | Description |
---|---|---|
num | * | Number to validate |
Returns
boolean true/false
Examples
turf.isNumber(123);
//=true
turf.isNumber("foo");
//=false
Installation
$ npm install @turf/helpers
import { isNumber } from "@turf/helpers";
const result = isNumber(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.isNumber(...);