sx-is-number
v1.0.1
Published
判断数组中元素是否是数字类型,number[]
Downloads
1
Readme
sx-is-number
介绍
判断数组中元素是否是数字,number[]
安装教程
- npm i sx-is-number
- import sxIsNumber from "sx-is-number";
使用说明
import sxIsNumber from "sx-is-number";
const arr1 = [1, 2, 3, 4, 5];
console.log(sxIsNumber(arr1)); // 返回 true
const arr2 = [1, 2, 3, "a", 5];
console.log(sxIsNumber(arr2)); // 返回 false