_.sortedLastIndex(获取索引值)
Last updated
Was this helpful?
Last updated
Was this helpful?
语法:
源代码链接:
npm包链接:
描述:
此方法类似于,除了 它返回value
值 在array
中尽可能大的索引位置(index)。
开始版本:3.0.0
参数:
array (Array)
: 要检查的排序数组。
avalue (*)
: 要评估的值。
返回值:
(number)
: 返回 value值 应该在数组array中插入的索引位置 index。
例子: