_.gte(是否大于等于某值)
语法:
_.gte(value, other)源代码链接:source
npm包链接:npm package
描述:
检查value是否大于或者等于other。
开始版本:3.9.0
参数:
value (*): 要比较的值。other (*): 另一个要比较的值。
返回值:
(boolean): 如果value 大于或者等于 other 返回 true,否则返回 false。
例子:
_.gte(3, 1);
// => true
_.gte(3, 3);
// => true
_.gte(1, 3);
// => falseLast updated
Was this helpful?