Skip to content
On this page

Home > @taiyuuki/utils > MathRange > is_between

MathRange.is_between() method

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

判断一个数字是否在区间内

Signature:

typescript
is_between(num: number): boolean;
is_between(num: number): boolean;

Parameters

ParameterTypeDescription
numnumber一个数字

Returns:

boolean

判断结果

Released under the MIT License.