飞书文档
GitHub
正在准备搜索索引...
搜索索引不可用
🏊 Web Tools
🏊 Web Tools
@pandapro-project/webtools-utils
clampArrayRange
函数 clampArrayRange
clampArrayRange
(
n
:
number
,
arr
:
readonly
unknown
[]
)
:
number
Clamp a number to the index range of an array
参数
n
:
number
arr
:
readonly
unknown
[]
返回
number
显示设置
成员可见性
受保护
继承
外部
配色
自动
浅色
深色
飞书文档
GitHub
🏊 Web Tools
加载中……
Clamp a number to the index range of an array