Lodash

是一个一致性、模块化、高性能的 JavaScript 实用工具库。

“Lang” Methods

_.gte(value, other)

检查 value是否大于或者等于 other

添加版本

3.9.0

参数

  1. value (*): 要比较的值。
  2. other (*): 另一个要比较的值。

返回

(boolean): 如果value 大于或者等于 other 返回 true,否则返回 false

例子

_.gte(3, 1);
// => true
 
_.gte(3, 3);
// => true
 
_.gte(1, 3);
// => false

数组 Array

集合 Collection

日期 Date

函数 Function

Lang

数学 Math

数字 Number

对象 Object

Seq

字符串 String

实用函数 Util

Properties

Methods