Skip to main content
Version: 7.1.0

isNumber

Description

isNumber

Parameters

NameTypeDescription
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(...);