本模块提供布尔值处理相关方法。
- Source:
Methods
(static) allN(values) → {boolean}
检查指定数组元素的值是否都为 N。
Parameters:
Name | Type | Description |
---|---|---|
values |
Array | 指定数组。 |
- Source:
Returns:
指定数组元素的值是否都为 N。
- Type
- boolean
(static) allY(values) → {boolean}
检查指定数组元素的值是否都为 Y。
Parameters:
Name | Type | Description |
---|---|---|
values |
Array | 指定数组。 |
- Source:
Returns:
指定数组元素的值是否都为 Y。
- Type
- boolean
(static) boolToYN(value) → {string}
布尔值转换为 Y 或者 N。
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean | 布尔值。 |
- Source:
Returns:
Y 或者 N。
- Type
- string
(static) someN(values) → {boolean}
检查指定数组元素的值是否至少有一个为 N。
Parameters:
Name | Type | Description |
---|---|---|
values |
Array | 指定数组。 |
- Source:
Returns:
指定数组元素的值是否至少有一个为 N。
- Type
- boolean
(static) someY(values) → {boolean}
检查指定数组元素的值是否至少有一个为 Y。
Parameters:
Name | Type | Description |
---|---|---|
values |
Array | 指定数组。 |
- Source:
Returns:
指定数组元素的值是否至少有一个为 Y。
- Type
- boolean
(static) ynToBool(value) → {boolean}
Y 或者 N 转换为布尔值。
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Y 或者 N。 |
- Source:
Returns:
布尔值。
- Type
- boolean