MCPcopy 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}
11export function range(num, min, max) {
12 return Math.min(Math.max(num, min), max);
13}
14export function nextTick(fn) {
15 setTimeout(() => {
16 fn();

Callers 1

authcodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected