max
max(limit, [closed=true])
Effect
Restrict the max length of the detected array.
Arguments
limit
(number) - The max length.[closed]
(boolean) - Whether it is a closed interval or not, the default istrue
, which means a closed interval, it requires the detected array's length less than or equal tolimit
. If you exactly setclosed
tofalse
, you'll get an opened interval, it requires the detected array's length strictly less thanlimit
.
Example
Last updated