Lodash

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

“Util” Methods

_.stubTrue()

这个方法返回 true

添加版本

4.13.0

返回

(boolean): 返回 true

例子

_.times(2, _.stubTrue);
// => [true, true]

数组 Array

集合 Collection

日期 Date

函数 Function

Lang

数学 Math

数字 Number

对象 Object

Seq

字符串 String

实用函数 Util

Properties

Methods