Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
8
export
function
isNumber(value) {
9
return
/^\d+(\.\d+)?$/.test(value);
10
}
11
export
function
range(num, min, max) {
12
return
Math.min(Math.max(num, min), max);
13
}
Callers
1
addUnit
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected