Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CoderOpen/waimai
/ range
Function
range
front/wxcomponents/vant/common/utils.js:11–13 ·
view source on GitHub ↗
(num, min, max)
Source
from the content-addressed store, hash-verified
9
return
/^\d+(\.\d+)?$/.test(value);
10
}
11
export
function
range(num, min, max) {
12
return
Math.min(Math.max(num, min), max);
13
}
14
export
function
nextTick(fn) {
15
setTimeout(() => {
16
fn();
Callers
1
authcode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected