isNumber
描述
¥Description
isNumber
参数
¥Parameters
| 名称 | 类型 | 描述 |
|---|---|---|
| num | any | 待验证的数字 |
返回
¥Returns
boolean 真/假
¥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(...);