MCPcopy Create free account
hub / github.com/CoderOpen/waimai / isNumber

Function isNumber

front/wxcomponents/vant/common/utils.js:8–10  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6 return x !== null && (type === 'object' || type === 'function');
7}
8export function isNumber(value) {
9 return /^\d+(\.\d+)?$/.test(value);
10}
11export function range(num, min, max) {
12 return Math.min(Math.max(num, min), max);
13}

Callers 1

addUnitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected