diff --git a/404.html b/404.html index da25f1b..8f4a381 100644 --- a/404.html +++ b/404.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/VERSION.html b/VERSION.html index e1fcdac..dda1e1d 100644 --- a/VERSION.html +++ b/VERSION.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    VERSION source

    +

    VERSION source

    _.VERSION

    (string): 语义化版本号

    diff --git a/_.html b/_.html index 995064e..f2066a5 100644 --- a/_.html +++ b/_.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/add.html b/add.html index ec28bdc..e74ab7c 100644 --- a/add.html +++ b/add.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    add source npm

    +

    add source npm

    _.add(augend, addend)

    相加两个数

    diff --git a/after.html b/after.html index 60cfc89..f3349d1 100644 --- a/after.html +++ b/after.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/all.html b/all.html index b580efc..adf42c1 100644 --- a/all.html +++ b/all.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -9883,7 +9883,7 @@

    示例

    })();
    -

    add source npm

    +

    add source npm

    _.add(augend, addend)

    相加两个数

    @@ -9931,7 +9931,7 @@

    示例

    })();
    -

    ceil source npm

    +

    ceil source npm

    _.ceil(number, [precision=0])

    根据 precision 向上舍入 number

    @@ -9985,7 +9985,7 @@

    示例

    })();
    -

    floor source npm

    +

    floor source npm

    _.floor(number, [precision=0])

    根据 precision 向下保留 number

    @@ -10039,7 +10039,7 @@

    示例

    })();
    -

    max source npm

    +

    max source npm

    _.max(array)

    计算 array 中最大的值。 @@ -10089,7 +10089,7 @@

    示例

    })();
    -

    maxBy source npm

    +

    maxBy source npm

    _.maxBy(array, [iteratee=_.identity])

    这个方法类似 _.max @@ -10148,7 +10148,7 @@

    示例

    })();
    -

    mean source npm

    +

    mean source npm

    _.mean(array)

    计算 array 的平均值。

    @@ -10194,7 +10194,7 @@

    示例

    })();
    -

    min source npm

    +

    min source npm

    _.min(array)

    计算 array 中最小的值。 如果 array 是 空的或者假值将会返回 undefined。

    @@ -10243,7 +10243,7 @@

    示例

    })();
    -

    minBy source npm

    +

    minBy source npm

    _.minBy(array, [iteratee=_.identity])

    这个方法类似 _.min。 @@ -10301,7 +10301,7 @@

    示例

    })();
    -

    round source npm

    +

    round source npm

    _.round(number, [precision=0])

    根据 precision 四舍五入 number。

    @@ -10355,7 +10355,7 @@

    示例

    })();
    -

    subtract source npm

    +

    subtract source npm

    _.subtract(minuend, subtrahend)

    两双相减

    @@ -10403,7 +10403,7 @@

    示例

    })();
    -

    sum source npm

    +

    sum source npm

    _.sum(array)

    计算 array 中值的总和

    @@ -10449,7 +10449,7 @@

    示例

    })();
    -

    sumBy source npm

    +

    sumBy source npm

    _.sumBy(array, [iteratee=_.identity])

    这个方法类似 _.sum。 @@ -13271,7 +13271,7 @@

    示例

    })();
    -

    VERSION source

    +

    VERSION source

    _.VERSION

    (string): 语义化版本号

    @@ -13938,27 +13938,26 @@

    示例

    })();
    -

    parseInt source npm

    +

    parseInt source npm

    _.parseInt(string, [radix])
    -

    Converts string to an integer of the specified radix. If radix is -undefined or 0, a radix of 10 is used unless value is a hexadecimal, -in which case a radix of 16 is used. +

    以指定的基数转换字符串为整数。 +如果基数是 undefined 或者 0,则基数默认是10,如果字符串是16进制,则基数为16。

    -注意: This method aligns with the ES5 implementation -of parseInt.

    +注意: 这个方法与 ES5 implementation +的 parseInt 一致

    参数

    1. string (string)

      要转换的字符串

    2. -
    3. [radix] (number)

      The radix to interpret value by.

      +
    4. [radix] (number)

      基数

    返回值 (number)

    -

    Returns the converted integer.

    +

    返回转换后的整数

    示例

    _.parseInt('08');
    @@ -13995,21 +13994,21 @@ 

    示例

    })();
    -

    repeat source npm

    +

    repeat source npm

    _.repeat([string=''], [n=0])
    -

    Repeats the given string n times.

    +

    重复 N 次字符串

    参数

      -
    1. [string=''] (string)

      The string to repeat.

      +
    2. [string=''] (string)

      要重复的字符串

    3. -
    4. [n=0] (number)

      The number of times to repeat the string.

      +
    5. [n=0] (number)

      重复的次数

    返回值 (string)

    -

    Returns the repeated string.

    +

    返回重复的字符串

    示例

    _.repeat('*', 3);
    @@ -14049,26 +14048,25 @@ 

    示例

    })();
    -

    replace source npm

    -
    _.replace([string=''], pattern, replacement)
    +

    replace source npm

    +
    _.replace([string=''], pattern, 要替换的内容)
    -

    Replaces matches for pattern in string with replacement. +

    替换字符串中匹配的内容为给定的内容

    -注意: This method is based on String#replace.

    +注意: 这个方法基于 String#replace

    参数

      -
    1. [string=''] (string)

      The string to modify.

      -
    2. -
    3. pattern (RegExp|string)

      The pattern to replace.

      +
    4. [string=''] (string)

      待替换的字符串

    5. -
    6. replacement (Function|string)

      The match replacement.

      +
    7. pattern (RegExp|string)

      要匹配的内容

    8. +
    9. 要替换的内容 (Function|string)
       

    返回值 (string)

    -

    Returns the modified string.

    +

    返回替换完成的字符串

    示例

    _.replace('Hi Fred', 'Fred', 'Barney');
    @@ -14102,10 +14100,10 @@ 

    示例

    })();
    -

    snakeCase source npm

    +

    snakeCase source npm

    _.snakeCase([string=''])
    -

    Converts string to snake case.

    +

    转换字符串为 snake case

    参数

    @@ -14114,7 +14112,7 @@

    参数

    返回值 (string)

    -

    Returns the snake cased string.

    +

    返回转换后的字符串

    示例

    _.snakeCase('Foo Bar');
    @@ -14154,26 +14152,26 @@ 

    示例

    })();
    -

    split source npm

    -
    _.split([string=''], separator, [limit])
    +

    split source npm

    +
    _.split([string=''], [separator], [limit])
    -

    Splits string by separator. +

    separator 拆分字符串

    -注意: This method is based on String#split.

    +注意: 这个方法基于 String#split

    参数

      -
    1. [string=''] (string)

      The string to split.

      +
    2. [string=''] (string)

      要拆分的字符串

    3. -
    4. separator (RegExp|string)

      The separator pattern to split by.

      +
    5. [separator] (RegExp|string)

      拆分的分隔符

    6. -
    7. [limit] (number)

      The length to truncate results to.

      +
    8. [limit] (number)

      限制的数量

    返回值 (Array)

    -

    Returns the new array of string segments.

    +

    返回拆分部分的字符串的数组

    示例

    _.split('a-b-c', '-', 2);
    @@ -14207,10 +14205,10 @@ 

    示例

    })();
    -

    startCase source npm

    +

    startCase source npm

    _.startCase([string=''])
    -

    Converts string to start case.

    +

    转换字符串为 start case

    参数

    @@ -14219,7 +14217,7 @@

    参数

    返回值 (string)

    -

    Returns the start cased string.

    +

    返回转换后的字符串

    示例

    _.startCase('--foo-bar');
    @@ -14259,23 +14257,23 @@ 

    示例

    })();
    -

    startsWith source npm

    +

    startsWith source npm

    _.startsWith([string=''], [target], [position=0])
    -

    Checks if string starts with the given target string.

    +

    检查字符串是否以 target 开头。

    参数

    1. [string=''] (string)

      要检索的字符串

    2. -
    3. [target] (string)

      The string to search for.

      +
    4. [target] (string)

      要检查的字符串

    5. [position=0] (number)

      检索的位置

    返回值 (boolean)

    -

    Returns true if string starts with target否则返回 false

    +

    如果符合条件返回true,否则返回 false

    示例

    _.startsWith('abc', 'a');
    @@ -14315,100 +14313,100 @@ 

    示例

    })();
    -

    template source npm

    +

    template source npm

    _.template([string=''], [options])
    -

    Creates a compiled template function that can interpolate data properties -in "interpolate" delimiters, HTML-escape interpolated data properties in -"escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data -properties may be accessed as free variables in the template. If a setting -object is provided it takes precedence over _.templateSettings values. +

    创建一个预编译模板方法,可以插入数据到模板中 "interpolate" 分隔符相应的位置。 +HTML会在 "escape" 分隔符中转换为相应实体。 +在 "evaluate" 分隔符中允许执行JavaScript代码。 +在模板中可以自由访问变量。 +如果设置了选项对象,则会优先覆盖 _.templateSettings 的值。

    -注意: In the development build _.template utilizes +注意: 在开发过程中可以使用 sourceURLs -for easier debugging. +便于调试。

    -For more information on precompiling templates see -lodash's custom builds documentation. +了解更多预编译模板的信息查看 +lodash的自定义构建文档

    -For more information on Chrome extension sandboxes see -Chrome's extensions documentation.

    +了解更多 Chrome 沙箱扩展的信息查看 +Chrome的扩展文档

    参数

      -
    1. [string=''] (string)

      The template string.

      +
    2. [string=''] (string)

      模板字符串

    3. -
    4. [options] (Object)

      The options object.

      +
    5. [options] (Object)

      选项对象

    6. -
    7. [options.escape] (RegExp)

      The HTML "escape" delimiter.

      +
    8. [options.escape] (RegExp)

      "escape" 分隔符

    9. -
    10. [options.evaluate] (RegExp)

      The "evaluate" delimiter.

      +
    11. [options.evaluate] (RegExp)

      "evaluate" 分隔符

    12. -
    13. [options.imports] (Object)

      An object to import into the template as free variables.

      +
    14. [options.imports] (Object)

      导入对象到模板中作为自由变量

    15. -
    16. [options.interpolate] (RegExp)

      The "interpolate" delimiter.

      +
    17. [options.interpolate] (RegExp)

      "interpolate" 分隔符

    18. -
    19. [options.sourceURL] (string)

      The sourceURL of the template's compiled source.

      +
    20. [options.sourceURL] (string)

      模板编译的来源URL

    21. -
    22. [options.variable] (string)

      The data object variable name.

      +
    23. [options.variable] (string)

      数据对象的变量名

    返回值 (Function)

    -

    Returns the compiled template function.

    +

    返回编译模板函数

    示例

    -
    // using the "interpolate" delimiter to create a compiled template
    +    
    // 使用 "interpolate" 分隔符创建编译模板
     var compiled = _.template('hello <%= user %>!');
     compiled({ 'user': 'fred' });
     // => 'hello fred!'
     
    -// using the HTML "escape" delimiter to escape data property values
    +// 使用 HTML "escape" 转义数据的值
     var compiled = _.template('<b><%- value %></b>');
     compiled({ 'value': '<script>' });
     // => '<b>&lt;script&gt;</b>'
     
    -// using the "evaluate" delimiter to execute JavaScript and generate HTML
    +// 使用 "evaluate" 分隔符执行 JavaScript 和 生成HTML代码
     var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     compiled({ 'users': ['fred', 'barney'] });
     // => '<li>fred</li><li>barney</li>'
     
    -// using the internal `print` function in "evaluate" delimiters
    +// 在 "evaluate" 分隔符中使用内部的 `print` 函数
     var compiled = _.template('<% print("hello " + user); %>!');
     compiled({ 'user': 'barney' });
     // => 'hello barney!'
     
    -// using the ES delimiter as an alternative to the default "interpolate" delimiter
    +// 使用 ES 分隔符代替默认的 "interpolate" 分隔符
     var compiled = _.template('hello ${ user }!');
     compiled({ 'user': 'pebbles' });
     // => 'hello pebbles!'
     
    -// using custom template delimiters
    +// 使用自定义的模板分隔符
     _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     var compiled = _.template('hello {{ user }}!');
     compiled({ 'user': 'mustache' });
     // => 'hello mustache!'
     
    -// using backslashes to treat delimiters as plain text
    +// 使用反斜杠符号作为纯文本处理
     var compiled = _.template('<%= "\\<%- value %\\>" %>');
     compiled({ 'value': 'ignored' });
     // => '<%- value %>'
     
    -// using the `imports` option to import `jQuery` as `jq`
    +// 使用 `imports` 选项导入 `jq` 作为 `jQuery` 的别名
     var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     compiled({ 'users': ['fred', 'barney'] });
     // => '<li>fred</li><li>barney</li>'
     
    -// using the `sourceURL` option to specify a custom sourceURL for the template
    +// 使用 `sourceURL` 选项指定模板的来源URL
     var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     compiled(data);
    -// => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
    +// => 在开发工具的 Sources 选项卡 或 Resources 面板中找到 "greeting.jst"
     
    -// using the `variable` option to ensure a with-statement isn't used in the compiled template
    +// 使用 `variable` 选项确保在编译模板中不声明变量
     var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     compiled.source;
     // => function(data) {
    @@ -14417,8 +14415,8 @@ 

    示例

    // return __p; // } -// using the `source` property to inline compiled templates for meaningful -// line numbers in error messages and a stack trace +// 使用 `source` 特性内联编译模板 +// 便以查看行号、错误信息、堆栈 fs.writeFileSync(path.join(cwd, 'jst.js'), '\ var JST = {\ "main": ' + _.template(mainText).source + '\ @@ -14453,10 +14451,10 @@

    示例

    })();
    -

    toLower source npm

    +

    toLower source npm

    _.toLower([string=''])
    -

    Converts string, as a whole, to lower case.

    +

    转换整体的字符串为小写

    参数

    @@ -14465,7 +14463,7 @@

    参数

    返回值 (string)

    -

    Returns the lower cased string.

    +

    返回小写的字符串

    示例

    _.toLower('--Foo-Bar');
    @@ -14505,10 +14503,10 @@ 

    示例

    })();
    -

    toUpper source npm

    +

    toUpper source npm

    _.toUpper([string=''])
    -

    Converts string, as a whole, to upper case.

    +

    转换整体的字符串为大写

    参数

    @@ -14517,7 +14515,7 @@

    参数

    返回值 (string)

    -

    Returns the upper cased string.

    +

    返回大写的字符串

    示例

    _.toUpper('--foo-bar');
    @@ -14557,21 +14555,21 @@ 

    示例

    })();
    -

    trim source npm

    +

    trim source npm

    _.trim([string=''], [chars=whitespace])
    -

    Removes leading and trailing whitespace or specified characters from string.

    +

    从字符串中移除前面和后面的空白 或 指定的字符。

    参数

      -
    1. [string=''] (string)

      The string to trim.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [chars=whitespace] (string)

      The characters to trim.

      +
    5. [chars=whitespace] (string)

      要处理的字符

    返回值 (string)

    -

    Returns the trimmed string.

    +

    返回处理后的字符串

    示例

    _.trim('  abc  ');
    @@ -14611,21 +14609,21 @@ 

    示例

    })();
    -

    trimEnd source npm

    +

    trimEnd source npm

    _.trimEnd([string=''], [chars=whitespace])
    -

    Removes trailing whitespace or specified characters from string.

    +

    移除字符串后面的空白 或 指定的字符。

    参数

      -
    1. [string=''] (string)

      The string to trim.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [chars=whitespace] (string)

      The characters to trim.

      +
    5. [chars=whitespace] (string)

      要处理的字符

    返回值 (string)

    -

    Returns the trimmed string.

    +

    返回处理后的字符串

    示例

    _.trimEnd('  abc  ');
    @@ -14662,21 +14660,21 @@ 

    示例

    })();
    -

    trimStart source npm

    +

    trimStart source npm

    _.trimStart([string=''], [chars=whitespace])
    -

    Removes leading whitespace or specified characters from string.

    +

    移除字符串中前面的空白 或 指定的字符。

    参数

      -
    1. [string=''] (string)

      The string to trim.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [chars=whitespace] (string)

      The characters to trim.

      +
    5. [chars=whitespace] (string)

      要处理的字符

    返回值 (string)

    -

    Returns the trimmed string.

    +

    返回处理后的字符串

    示例

    _.trimStart('  abc  ');
    @@ -14713,29 +14711,28 @@ 

    示例

    })();
    -

    truncate source npm

    +

    truncate source npm

    _.truncate([string=''], [options])
    -

    Truncates string if it's longer than the given maximum string length. -The last characters of the truncated string are replaced with the omission -string which defaults to "...".

    +

    截断字符串,如果字符串超出了限定的最大值。 +被截断的字符串后面会以 omission 代替,omission 默认是 "..."。

    参数

      -
    1. [string=''] (string)

      The string to truncate.

      +
    2. [string=''] (string)

      要截断的字符串

    3. -
    4. [options] (Object)

      The options object.

      +
    5. [options] (Object)

      选项对象

    6. -
    7. [options.length=30] (number)

      The maximum string length.

      +
    8. [options.length=30] (number)

      允许的最大长度

    9. -
    10. [options.omission='...'] (string)

      The string to indicate text is omitted.

      +
    11. [options.omission='...'] (string)

      超出后的代替字符

    12. -
    13. [options.separator] (RegExp|string)

      The separator pattern to truncate to.

      +
    14. [options.separator] (RegExp|string)

      截断点

    返回值 (string)

    -

    Returns the truncated string.

    +

    返回截断后的字符串

    示例

    _.truncate('hi-diddly-ho there, neighborino');
    @@ -14786,25 +14783,24 @@ 

    示例

    })();
    -

    unescape source npm

    +

    unescape source npm

    _.unescape([string=''])
    -

    The inverse of _.escape; this method converts the HTML entities -&amp;, &lt;, &gt;, &quot;, &#39;, and &#96; in string to their -corresponding characters. +

    反向版 _.escape。 +这个方法转换 HTML 实体 +&amp;, &lt;, &gt;, &quot;, &#39;, 以及 &#96; 为对应的字符。

    -注意: No other HTML entities are unescaped. To unescape additional HTML -entities use a third-party library like he.

    +注意: 不会转换其他的 HTML 实体,需要转换可以使用类似 he 的第三方库。

    参数

      -
    1. [string=''] (string)

      The string to unescape.

      +
    2. [string=''] (string)

      要转换的字符串

    返回值 (string)

    -

    Returns the unescaped string.

    +

    返回转换后的字符串

    示例

    _.unescape('fred, barney, &amp; pebbles');
    @@ -14838,10 +14834,10 @@ 

    示例

    })();
    -

    upperCase source npm

    +

    upperCase source npm

    _.upperCase([string=''])
    -

    Converts string, as space separated words, to upper case.

    +

    转换字符串为空格分割的大写单词

    参数

    @@ -14850,7 +14846,7 @@

    参数

    返回值 (string)

    -

    Returns the upper cased string.

    +

    返回大写单词

    示例

    _.upperCase('--foo-bar');
    @@ -14939,21 +14935,21 @@ 

    示例

    })();
    -

    words source npm

    +

    words source npm

    _.words([string=''], [pattern])
    -

    Splits string into an array of its words.

    +

    拆分字符串中的词为数组

    参数

      -
    1. [string=''] (string)

      The string to inspect.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [pattern] (RegExp|string)

      The pattern to match words.

      +
    5. [pattern] (RegExp|string)

      匹配模式

    返回值 (Array)

    -

    Returns the words of string.

    +

    然后拆分后的数组

    示例

    _.words('fred, barney, & pebbles');
    @@ -14990,7 +14986,7 @@ 

    示例

    })();
    -

    attempt source npm

    +

    attempt source npm

    _.attempt(func)

    Attempts to invoke func, returning either the result or the caught error @@ -15043,7 +15039,7 @@

    示例

    })();
    -

    bindAll source npm

    +

    bindAll source npm

    _.bindAll(object, methodNames)

    Binds methods of an object to the object itself, overwriting the existing @@ -15103,7 +15099,7 @@

    示例

    })();
    -

    cond source npm

    +

    cond source npm

    _.cond(pairs)

    Creates a function that iterates over pairs invoking the corresponding @@ -15164,7 +15160,7 @@

    示例

    })();
    -

    conforms source npm

    +

    conforms source npm

    _.conforms(source)

    Creates a function that invokes the predicate properties of source with @@ -15217,7 +15213,7 @@

    示例

    })();
    -

    constant source npm

    +

    constant source npm

    _.constant(value)

    Creates a function that returns value.

    @@ -15266,7 +15262,7 @@

    示例

    })();
    -

    flow source npm

    +

    flow source npm

    _.flow([funcs])

    Creates a function that returns the result of invoking the provided @@ -15319,7 +15315,7 @@

    示例

    })();
    -

    flowRight source npm

    +

    flowRight source npm

    _.flowRight([funcs])

    这个方法类似 _.flow except that it creates a function that @@ -15371,7 +15367,7 @@

    示例

    })();
    -

    identity source npm

    +

    identity source npm

    _.identity(value)

    This method returns the first argument provided to it.

    @@ -15419,7 +15415,7 @@

    示例

    })();
    -

    iteratee source npm

    +

    iteratee source npm

    _.iteratee([func=_.identity])

    创建一个调用 func 的函数。 with the arguments of the created @@ -15486,7 +15482,7 @@

    示例

    })();
    -

    matches source npm

    +

    matches source npm

    _.matches(source)

    Creates a function that performs a deep partial comparison between a given @@ -15542,7 +15538,7 @@

    示例

    })();
    -

    matchesProperty source npm

    +

    matchesProperty source npm

    _.matchesProperty(path, srcValue)

    Creates a function that performs a deep partial comparison between the @@ -15600,7 +15596,7 @@

    示例

    })();
    -

    method source npm

    +

    method source npm

    _.method(path, [args])

    Creates a function that invokes the method at path of a given object. @@ -15657,7 +15653,7 @@

    示例

    })();
    -

    methodOf source npm

    +

    methodOf source npm

    _.methodOf(object, [args])

    The opposite of _.method; this method creates a function that invokes @@ -15713,7 +15709,7 @@

    示例

    })();
    -

    mixin source npm

    +

    mixin source npm

    _.mixin([object=lodash], source, [options])

    Adds all own enumerable function properties of a source object to the @@ -15785,7 +15781,7 @@

    示例

    })();
    -

    noConflict source npm

    +

    noConflict source npm

    _.noConflict()

    Reverts the _ variable to its previous value and returns a reference to @@ -15826,7 +15822,7 @@

    示例

    })();
    -

    noop source npm

    +

    noop source npm

    _.noop()

    A no-operation function that returns undefined regardless of the @@ -15867,7 +15863,7 @@

    示例

    })();
    -

    nthArg source npm

    +

    nthArg source npm

    _.nthArg([n=0])

    Creates a function that returns its nth argument.

    @@ -15915,7 +15911,7 @@

    示例

    })();
    -

    over source npm

    +

    over source npm

    _.over(iteratees)

    Creates a function that invokes iteratees with the arguments provided @@ -15964,7 +15960,7 @@

    示例

    })();
    -

    overEvery source npm

    +

    overEvery source npm

    _.overEvery(predicates)

    Creates a function that checks if all of the predicates return @@ -16019,7 +16015,7 @@

    示例

    })();
    -

    overSome source npm

    +

    overSome source npm

    _.overSome(predicates)

    Creates a function that checks if any of the predicates return @@ -16074,7 +16070,7 @@

    示例

    })();
    -

    property source npm

    +

    property source npm

    _.property(path)

    Creates a function that returns the value at path of a given object.

    @@ -16128,7 +16124,7 @@

    示例

    })();
    -

    propertyOf source npm

    +

    propertyOf source npm

    _.propertyOf(object)

    The opposite of _.property; this method creates a function that returns @@ -16181,7 +16177,7 @@

    示例

    })();
    -

    range source npm

    +

    range source npm

    _.range([start=0], end, [step=1])

    Creates an array of numbers (positive and/or negative) progressing from @@ -16257,7 +16253,7 @@

    示例

    })();
    -

    rangeRight source npm

    +

    rangeRight source npm

    _.rangeRight([start=0], end, [step=1])

    这个方法类似 _.range except that it populates values in @@ -16329,7 +16325,7 @@

    示例

    runInContext source npm

    _.runInContext([context=root])
    -

    Create a new pristine lodash function using the context object.

    +

    Create a new pristine lodash function 使用 context object.

    参数

    @@ -16394,7 +16390,7 @@

    示例

    })();
    -

    times source npm

    +

    times source npm

    _.times(n, [iteratee=_.identity])

    Invokes the iteratee function n times, returning an array of the results @@ -16446,7 +16442,7 @@

    示例

    })();
    -

    toPath source npm

    +

    toPath source npm

    _.toPath(value)

    Converts value to a property path array.

    @@ -16504,7 +16500,7 @@

    示例

    })();
    -

    uniqueId source npm

    +

    uniqueId source npm

    _.uniqueId([prefix])

    Generates a unique ID. If prefix is provided the ID is appended to it.

    diff --git a/ary.html b/ary.html index f8b7a9f..048b006 100644 --- a/ary.html +++ b/ary.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/assign.html b/assign.html index 7d31cf2..d0091d0 100644 --- a/assign.html +++ b/assign.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/assignIn.html b/assignIn.html index 9d1132b..bf6e6a2 100644 --- a/assignIn.html +++ b/assignIn.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/assignInWith.html b/assignInWith.html index 1b3a08b..f6ef88f 100644 --- a/assignInWith.html +++ b/assignInWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/assignWith.html b/assignWith.html index 5663c2f..002f427 100644 --- a/assignWith.html +++ b/assignWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/at.html b/at.html index 1c71df8..08fbb14 100644 --- a/at.html +++ b/at.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/attempt.html b/attempt.html index 98cd4f0..cf98ada 100644 --- a/attempt.html +++ b/attempt.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    attempt source npm

    +

    attempt source npm

    _.attempt(func)

    Attempts to invoke func, returning either the result or the caught error diff --git a/before.html b/before.html index b1dbdf3..9963f2e 100644 --- a/before.html +++ b/before.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/bind.html b/bind.html index 1641396..2869d06 100644 --- a/bind.html +++ b/bind.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/bindAll.html b/bindAll.html index 1a02fb3..ee8d76c 100644 --- a/bindAll.html +++ b/bindAll.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    bindAll source npm

    +

    bindAll source npm

    _.bindAll(object, methodNames)

    Binds methods of an object to the object itself, overwriting the existing diff --git a/bindKey.html b/bindKey.html index 5289e0b..d3307d6 100644 --- a/bindKey.html +++ b/bindKey.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/camelCase.html b/camelCase.html index 407bc80..1997436 100644 --- a/camelCase.html +++ b/camelCase.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/capitalize.html b/capitalize.html index feaecd0..196394c 100644 --- a/capitalize.html +++ b/capitalize.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/ceil.html b/ceil.html index c1b442d..874c2d4 100644 --- a/ceil.html +++ b/ceil.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    ceil source npm

    +

    ceil source npm

    _.ceil(number, [precision=0])

    根据 precision 向上舍入 number

    diff --git a/chain.html b/chain.html index 5ed42f0..95b4520 100644 --- a/chain.html +++ b/chain.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/chunk.html b/chunk.html index 74f5e54..69efe1d 100644 --- a/chunk.html +++ b/chunk.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/clamp.html b/clamp.html index 14c85e1..d7ad471 100644 --- a/clamp.html +++ b/clamp.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/clone.html b/clone.html index 579ea6e..58ef76a 100644 --- a/clone.html +++ b/clone.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/cloneDeep.html b/cloneDeep.html index 2c5e469..68ec2e3 100644 --- a/cloneDeep.html +++ b/cloneDeep.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/cloneDeepWith.html b/cloneDeepWith.html index 91661ac..5c38b94 100644 --- a/cloneDeepWith.html +++ b/cloneDeepWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/cloneWith.html b/cloneWith.html index bb855c8..437f832 100644 --- a/cloneWith.html +++ b/cloneWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/compact.html b/compact.html index 0e02af3..47dbb41 100644 --- a/compact.html +++ b/compact.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/concat.html b/concat.html index 92dad7c..d573ade 100644 --- a/concat.html +++ b/concat.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/cond.html b/cond.html index bc03293..aa0ff1e 100644 --- a/cond.html +++ b/cond.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    cond source npm

    +

    cond source npm

    _.cond(pairs)

    Creates a function that iterates over pairs invoking the corresponding diff --git a/conforms.html b/conforms.html index 4950573..25b2671 100644 --- a/conforms.html +++ b/conforms.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    conforms source npm

    +

    conforms source npm

    _.conforms(source)

    Creates a function that invokes the predicate properties of source with diff --git a/constant.html b/constant.html index 97bd3f6..da495f9 100644 --- a/constant.html +++ b/constant.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    constant source npm

    +

    constant source npm

    _.constant(value)

    Creates a function that returns value.

    diff --git a/countBy.html b/countBy.html index 308f2d9..808a9d4 100644 --- a/countBy.html +++ b/countBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/create.html b/create.html index 915ced0..91711ec 100644 --- a/create.html +++ b/create.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/curry.html b/curry.html index f8afc2d..3749dc5 100644 --- a/curry.html +++ b/curry.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/curryRight.html b/curryRight.html index 0933c7a..fcf4554 100644 --- a/curryRight.html +++ b/curryRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/custom-builds.html b/custom-builds.html index 6f1959b..f9fcc35 100644 --- a/custom-builds.html +++ b/custom-builds.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/debounce.html b/debounce.html index 6e9f704..5563f82 100644 --- a/debounce.html +++ b/debounce.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/deburr.html b/deburr.html index 15105cf..6b9a931 100644 --- a/deburr.html +++ b/deburr.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/defaults.html b/defaults.html index 2ac9e8f..66cb3d1 100644 --- a/defaults.html +++ b/defaults.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/defaultsDeep.html b/defaultsDeep.html index ee26c45..b69f1f8 100644 --- a/defaultsDeep.html +++ b/defaultsDeep.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/defer.html b/defer.html index f513507..2ba6e15 100644 --- a/defer.html +++ b/defer.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/delay.html b/delay.html index 929f7a5..f33bee5 100644 --- a/delay.html +++ b/delay.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/difference.html b/difference.html index 0495f60..2474d60 100644 --- a/difference.html +++ b/difference.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/differenceBy.html b/differenceBy.html index 293e9e7..d61912f 100644 --- a/differenceBy.html +++ b/differenceBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/differenceWith.html b/differenceWith.html index 8913336..256cfd3 100644 --- a/differenceWith.html +++ b/differenceWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/drop.html b/drop.html index c60bcb3..37f3dac 100644 --- a/drop.html +++ b/drop.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/dropRight.html b/dropRight.html index 95bc9c9..d9e4467 100644 --- a/dropRight.html +++ b/dropRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/dropRightWhile.html b/dropRightWhile.html index c9ce862..bebd20c 100644 --- a/dropRightWhile.html +++ b/dropRightWhile.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/dropWhile.html b/dropWhile.html index 3014c44..f2c80d8 100644 --- a/dropWhile.html +++ b/dropWhile.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/endsWith.html b/endsWith.html index 049e66c..cdc9dc0 100644 --- a/endsWith.html +++ b/endsWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/eq.html b/eq.html index b6c9fd1..52e9e53 100644 --- a/eq.html +++ b/eq.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/escape.html b/escape.html index 07f3ae9..2a5acb1 100644 --- a/escape.html +++ b/escape.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/escapeRegExp.html b/escapeRegExp.html index 6b6bd86..eddab37 100644 --- a/escapeRegExp.html +++ b/escapeRegExp.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/every.html b/every.html index f09630b..5e3db7e 100644 --- a/every.html +++ b/every.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/fill.html b/fill.html index 3ecdfa8..64a0c71 100644 --- a/fill.html +++ b/fill.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/filter.html b/filter.html index 98b5ed5..a8de440 100644 --- a/filter.html +++ b/filter.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/find.html b/find.html index 90d8f7d..89e97dc 100644 --- a/find.html +++ b/find.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/findIndex.html b/findIndex.html index 70e66b7..61f06e5 100644 --- a/findIndex.html +++ b/findIndex.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/findKey.html b/findKey.html index da94c25..618c12c 100644 --- a/findKey.html +++ b/findKey.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/findLast.html b/findLast.html index 2cf0939..e3c50db 100644 --- a/findLast.html +++ b/findLast.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/findLastIndex.html b/findLastIndex.html index 54df8e1..82a6a74 100644 --- a/findLastIndex.html +++ b/findLastIndex.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/findLastKey.html b/findLastKey.html index 8c55a3b..91273fe 100644 --- a/findLastKey.html +++ b/findLastKey.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/flatMap.html b/flatMap.html index 1f84bfc..c446f9d 100644 --- a/flatMap.html +++ b/flatMap.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/flatten.html b/flatten.html index 078ba68..7683ca5 100644 --- a/flatten.html +++ b/flatten.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/flattenDeep.html b/flattenDeep.html index 29f3906..6d4f1e3 100644 --- a/flattenDeep.html +++ b/flattenDeep.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/flip.html b/flip.html index cb7b8c6..8e315a4 100644 --- a/flip.html +++ b/flip.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/floor.html b/floor.html index 42d41d6..62f262b 100644 --- a/floor.html +++ b/floor.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    floor source npm

    +

    floor source npm

    _.floor(number, [precision=0])

    根据 precision 向下保留 number

    diff --git a/flow.html b/flow.html index 6b7ccd4..342a6cb 100644 --- a/flow.html +++ b/flow.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    flow source npm

    +

    flow source npm

    _.flow([funcs])

    Creates a function that returns the result of invoking the provided diff --git a/flowRight.html b/flowRight.html index 07673c4..b538702 100644 --- a/flowRight.html +++ b/flowRight.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    flowRight source npm

    +

    flowRight source npm

    _.flowRight([funcs])

    这个方法类似 _.flow except that it creates a function that diff --git a/forEach.html b/forEach.html index 4b5e5f7..fcbef83 100644 --- a/forEach.html +++ b/forEach.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/forEachRight.html b/forEachRight.html index cb390f0..d5ef113 100644 --- a/forEachRight.html +++ b/forEachRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/forIn.html b/forIn.html index fbf6f01..57d685c 100644 --- a/forIn.html +++ b/forIn.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/forInRight.html b/forInRight.html index 703a72f..2755258 100644 --- a/forInRight.html +++ b/forInRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/forOwn.html b/forOwn.html index 5ae4b8c..da91d8a 100644 --- a/forOwn.html +++ b/forOwn.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/forOwnRight.html b/forOwnRight.html index a8b01e7..29147bf 100644 --- a/forOwnRight.html +++ b/forOwnRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/fromPairs.html b/fromPairs.html index 3c41c04..b236711 100644 --- a/fromPairs.html +++ b/fromPairs.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/functions.html b/functions.html index 7d19c19..628d6f5 100644 --- a/functions.html +++ b/functions.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/functionsIn.html b/functionsIn.html index dea8019..66b746d 100644 --- a/functionsIn.html +++ b/functionsIn.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/get.html b/get.html index 2abde1a..2cee6f9 100644 --- a/get.html +++ b/get.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/getting-started.html b/getting-started.html index ca21f91..256792a 100644 --- a/getting-started.html +++ b/getting-started.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/groupBy.html b/groupBy.html index a558f9b..3f19860 100644 --- a/groupBy.html +++ b/groupBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/gt.html b/gt.html index b5a90c5..6343045 100644 --- a/gt.html +++ b/gt.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/gte.html b/gte.html index b14ec28..bf3e271 100644 --- a/gte.html +++ b/gte.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/has.html b/has.html index fcbc5e2..d9bcb58 100644 --- a/has.html +++ b/has.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/hasIn.html b/hasIn.html index 5586c75..3477ab7 100644 --- a/hasIn.html +++ b/hasIn.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/head.html b/head.html index 9d35d4d..9fc65af 100644 --- a/head.html +++ b/head.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/identity.html b/identity.html index 17fecfb..377f9cb 100644 --- a/identity.html +++ b/identity.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    identity source npm

    +

    identity source npm

    _.identity(value)

    This method returns the first argument provided to it.

    diff --git a/inRange.html b/inRange.html index 3cf3a0a..b2f3def 100644 --- a/inRange.html +++ b/inRange.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/includes.html b/includes.html index 9eabf5c..53c8351 100644 --- a/includes.html +++ b/includes.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/index.html b/index.html index af70b51..4e4ae34 100644 --- a/index.html +++ b/index.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/indexOf.html b/indexOf.html index 4a95e07..53c74d7 100644 --- a/indexOf.html +++ b/indexOf.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/initial.html b/initial.html index 3ecd3d1..ce14b7f 100644 --- a/initial.html +++ b/initial.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/intersection.html b/intersection.html index 5f8bc61..463dad6 100644 --- a/intersection.html +++ b/intersection.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/intersectionBy.html b/intersectionBy.html index 801a132..7d9f7ce 100644 --- a/intersectionBy.html +++ b/intersectionBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/intersectionWith.html b/intersectionWith.html index 4ec4054..08cfb7d 100644 --- a/intersectionWith.html +++ b/intersectionWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/invert.html b/invert.html index 9b21e0c..a9ff885 100644 --- a/invert.html +++ b/invert.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/invoke.html b/invoke.html index da326d3..5709062 100644 --- a/invoke.html +++ b/invoke.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/invokeMap.html b/invokeMap.html index bbaae86..62e609e 100644 --- a/invokeMap.html +++ b/invokeMap.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isArguments.html b/isArguments.html index 3b367db..70383e3 100644 --- a/isArguments.html +++ b/isArguments.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isArray.html b/isArray.html index 0c87239..5617935 100644 --- a/isArray.html +++ b/isArray.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isArrayLike.html b/isArrayLike.html index 1df1ef8..a186311 100644 --- a/isArrayLike.html +++ b/isArrayLike.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isArrayLikeObject.html b/isArrayLikeObject.html index d947481..409b45f 100644 --- a/isArrayLikeObject.html +++ b/isArrayLikeObject.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isBoolean.html b/isBoolean.html index af16372..0d8ffed 100644 --- a/isBoolean.html +++ b/isBoolean.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isDate.html b/isDate.html index b6a1d92..191a7ad 100644 --- a/isDate.html +++ b/isDate.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isElement.html b/isElement.html index 62b5728..820c31e 100644 --- a/isElement.html +++ b/isElement.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isEmpty.html b/isEmpty.html index 356ccac..c92bef3 100644 --- a/isEmpty.html +++ b/isEmpty.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isEqual.html b/isEqual.html index 59322cc..d37593b 100644 --- a/isEqual.html +++ b/isEqual.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isEqualWith.html b/isEqualWith.html index a7aff63..6a666a0 100644 --- a/isEqualWith.html +++ b/isEqualWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isError.html b/isError.html index e7dd72a..441b700 100644 --- a/isError.html +++ b/isError.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isFinite.html b/isFinite.html index 9ab974e..2cbdb9d 100644 --- a/isFinite.html +++ b/isFinite.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isFunction.html b/isFunction.html index 789a5b8..df4a725 100644 --- a/isFunction.html +++ b/isFunction.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isInteger.html b/isInteger.html index df86de5..b3e2620 100644 --- a/isInteger.html +++ b/isInteger.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isLength.html b/isLength.html index 006b3fb..b4887ec 100644 --- a/isLength.html +++ b/isLength.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isMatch.html b/isMatch.html index 2f7b2c3..650c4b5 100644 --- a/isMatch.html +++ b/isMatch.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isMatchWith.html b/isMatchWith.html index dc909d0..6b91959 100644 --- a/isMatchWith.html +++ b/isMatchWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isNaN.html b/isNaN.html index 5a2a25c..9bb6e72 100644 --- a/isNaN.html +++ b/isNaN.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isNative.html b/isNative.html index 880e261..b9a3b1c 100644 --- a/isNative.html +++ b/isNative.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isNil.html b/isNil.html index 89b2dfb..9168d14 100644 --- a/isNil.html +++ b/isNil.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isNull.html b/isNull.html index 8733450..bb7d694 100644 --- a/isNull.html +++ b/isNull.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isNumber.html b/isNumber.html index 126918d..c9de1e3 100644 --- a/isNumber.html +++ b/isNumber.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isObject.html b/isObject.html index 42409ef..e8eb382 100644 --- a/isObject.html +++ b/isObject.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isObjectLike.html b/isObjectLike.html index 77fa5cd..c7f7004 100644 --- a/isObjectLike.html +++ b/isObjectLike.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isPlainObject.html b/isPlainObject.html index b40db06..5bf0526 100644 --- a/isPlainObject.html +++ b/isPlainObject.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isRegExp.html b/isRegExp.html index a4c019e..c143f45 100644 --- a/isRegExp.html +++ b/isRegExp.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isSafeInteger.html b/isSafeInteger.html index bf75c8f..dd58bd5 100644 --- a/isSafeInteger.html +++ b/isSafeInteger.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isString.html b/isString.html index b3d314a..b9471f5 100644 --- a/isString.html +++ b/isString.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isSymbol.html b/isSymbol.html index 8d14b1a..539a4d2 100644 --- a/isSymbol.html +++ b/isSymbol.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isTypedArray.html b/isTypedArray.html index 9b21315..530f2bf 100644 --- a/isTypedArray.html +++ b/isTypedArray.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/isUndefined.html b/isUndefined.html index e79134a..d98528b 100644 --- a/isUndefined.html +++ b/isUndefined.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/iteratee.html b/iteratee.html index 408668b..7f35676 100644 --- a/iteratee.html +++ b/iteratee.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    iteratee source npm

    +

    iteratee source npm

    _.iteratee([func=_.identity])

    创建一个调用 func 的函数。 with the arguments of the created diff --git a/join.html b/join.html index 183b8f8..2dfe6a3 100644 --- a/join.html +++ b/join.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/js/lodash-zh.js b/js/lodash-zh.js index 2a33f4d..c227ad3 100644 --- a/js/lodash-zh.js +++ b/js/lodash-zh.js @@ -590,7 +590,7 @@ * @param {Array} array The array to iterate over. * @param {Function} iteratee 这个函数会处理每一个元素 * @param {*} [accumulator] The initial value. - * @param {boolean} [initFromArray] Specify using the first element of `array` as the initial value. + * @param {boolean} [initFromArray] Specify 使用 first element of `array` as the initial value. * @returns {*} Returns the accumulated value. */ function arrayReduce (array, iteratee, accumulator, initFromArray) { @@ -614,7 +614,7 @@ * @param {Array} array The array to iterate over. * @param {Function} iteratee 这个函数会处理每一个元素 * @param {*} [accumulator] The initial value. - * @param {boolean} [initFromArray] Specify using the last element of `array` as the initial value. + * @param {boolean} [initFromArray] Specify 使用 last element of `array` as the initial value. * @returns {*} Returns the accumulated value. */ function arrayReduceRight (array, iteratee, accumulator, initFromArray) { @@ -749,14 +749,14 @@ /** * The base implementation of `_.reduce` and `_.reduceRight`, without support - * for callback shorthands, which iterates over `collection` using the provided + * for callback shorthands, which iterates over `collection` 使用 provided * `eachFunc`. * * @private * @param {Array|Object} collection 需要遍历的集合 * @param {Function} iteratee 这个函数会处理每一个元素 * @param {*} accumulator The initial value. - * @param {boolean} initFromCollection Specify using the first or last element of `collection` as the initial value. + * @param {boolean} initFromCollection Specify 使用 first or last element of `collection` as the initial value. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the accumulated value. */ @@ -850,8 +850,8 @@ * characters. * * @private - * @param {string} string The string to trim. - * @returns {string} Returns the trimmed string. + * @param {string} string 要处理的字符串 + * @returns {string} 返回处理后的字符串 */ function baseTrim (string) { return string @@ -1259,7 +1259,7 @@ /*--------------------------------------------------------------------------*/ /** - * Create a new pristine `lodash` function using the `context` object. + * Create a new pristine `lodash` function 使用 `context` object. * * @static * @memberOf _ @@ -11909,20 +11909,19 @@ } /** - * Converts `string` to an integer of the specified radix. If `radix` is - * `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal, - * in which case a `radix` of `16` is used. + * 以指定的基数转换字符串为整数。 + * 如果基数是 `undefined` 或者 0,则基数默认是10,如果字符串是16进制,则基数为16。 * - * **注意:** This method aligns with the [ES5 implementation](https://es5.github.io/#E) - * of `parseInt`. + * **注意:** 这个方法与 [ES5 implementation](https://es5.github.io/#E) + * 的 `parseInt` 一致 * * @static * @memberOf _ * @category String * @param {string} string 要转换的字符串 - * @param {number} [radix] The radix to interpret `value` by. + * @param {number} [radix] 基数 * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`. - * @returns {number} Returns the converted integer. + * @returns {number} 返回转换后的整数 * @example * * _.parseInt('08'); @@ -11944,14 +11943,14 @@ } /** - * Repeats the given string `n` times. + * 重复 N 次字符串 * * @static * @memberOf _ * @category String - * @param {string} [string=''] The string to repeat. - * @param {number} [n=0] The number of times to repeat the string. - * @returns {string} Returns the repeated string. + * @param {string} [string=''] 要重复的字符串 + * @param {number} [n=0] 重复的次数 + * @returns {string} 返回重复的字符串 * @example * * _.repeat('*', 3); @@ -11985,17 +11984,17 @@ } /** - * Replaces matches for `pattern` in `string` with `replacement`. + * 替换字符串中匹配的内容为给定的内容 * - * **注意:** This method is based on [`String#replace`](https://mdn.io/String/replace). + * **注意:** 这个方法基于 [`String#replace`](https://mdn.io/String/replace) * * @static * @memberOf _ * @category String - * @param {string} [string=''] The string to modify. - * @param {RegExp|string} pattern The pattern to replace. - * @param {Function|string} replacement The match replacement. - * @returns {string} Returns the modified string. + * @param {string} [string=''] 待替换的字符串 + * @param {RegExp|string} pattern 要匹配的内容 + * @param {Function|string} 要替换的内容 + * @returns {string} 返回替换完成的字符串 * @example * * _.replace('Hi Fred', 'Fred', 'Barney'); @@ -12009,13 +12008,13 @@ } /** - * Converts `string` to [snake case](https://en.wikipedia.org/wiki/Snake_case). + * 转换字符串为 [snake case](https://en.wikipedia.org/wiki/Snake_case) * * @static * @memberOf _ * @category String * @param {string} [string=''] 要转换的字符串 - * @returns {string} Returns the snake cased string. + * @returns {string} 返回转换后的字符串 * @example * * _.snakeCase('Foo Bar'); @@ -12032,17 +12031,17 @@ }); /** - * Splits `string` by `separator`. + * 以 `separator` 拆分字符串 * - * **注意:** This method is based on [`String#split`](https://mdn.io/String/split). + * **注意:** 这个方法基于 [`String#split`](https://mdn.io/String/split) * * @static * @memberOf _ * @category String - * @param {string} [string=''] The string to split. - * @param {RegExp|string} separator The separator pattern to split by. - * @param {number} [limit] The length to truncate results to. - * @returns {Array} Returns the new array of string segments. + * @param {string} [string=''] 要拆分的字符串 + * @param {RegExp|string} [separator] 拆分的分隔符 + * @param {number} [limit] 限制的数量 + * @returns {Array} 返回拆分部分的字符串的数组 * @example * * _.split('a-b-c', '-', 2); @@ -12053,13 +12052,13 @@ } /** - * Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). + * 转换字符串为 [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage) * * @static * @memberOf _ * @category String * @param {string} [string=''] 要转换的字符串 - * @returns {string} Returns the start cased string. + * @returns {string} 返回转换后的字符串 * @example * * _.startCase('--foo-bar'); @@ -12076,15 +12075,15 @@ }); /** - * Checks if `string` starts with the given target string. + * 检查字符串是否以 `target` 开头。 * * @static * @memberOf _ * @category String * @param {string} [string=''] 要检索的字符串 - * @param {string} [target] The string to search for. + * @param {string} [target] 要检查的字符串 * @param {number} [position=0] 检索的位置 - * @returns {boolean} Returns `true` if `string` starts with `target`否则返回 `false` + * @returns {boolean} 如果符合条件返回`true`,否则返回 `false` * @example * * _.startsWith('abc', 'a'); @@ -12103,85 +12102,85 @@ } /** - * Creates a compiled template function that can interpolate data properties - * in "interpolate" delimiters, HTML-escape interpolated data properties in - * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data - * properties may be accessed as free variables in the template. If a setting - * object is provided it takes precedence over `_.templateSettings` values. + * 创建一个预编译模板方法,可以插入数据到模板中 "interpolate" 分隔符相应的位置。 + * HTML会在 "escape" 分隔符中转换为相应实体。 + * 在 "evaluate" 分隔符中允许执行JavaScript代码。 + * 在模板中可以自由访问变量。 + * 如果设置了选项对象,则会优先覆盖 `_.templateSettings` 的值。 * - * **注意:** In the development build `_.template` utilizes + * **注意:** 在开发过程中可以使用 * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) - * for easier debugging. + * 便于调试。 * - * For more information on precompiling templates see - * [lodash's custom builds documentation](https://lodash.com/custom-builds). + * 了解更多预编译模板的信息查看 + * [lodash的自定义构建文档](https://lodash.com/custom-builds) * - * For more information on Chrome extension sandboxes see - * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). + * 了解更多 Chrome 沙箱扩展的信息查看 + * [Chrome的扩展文档](https://developer.chrome.com/extensions/sandboxingEval) * * @static * @memberOf _ * @category String - * @param {string} [string=''] The template string. - * @param {Object} [options] The options object. - * @param {RegExp} [options.escape] The HTML "escape" delimiter. - * @param {RegExp} [options.evaluate] The "evaluate" delimiter. - * @param {Object} [options.imports] An object to import into the template as free variables. - * @param {RegExp} [options.interpolate] The "interpolate" delimiter. - * @param {string} [options.sourceURL] The sourceURL of the template's compiled source. - * @param {string} [options.variable] The data object variable name. + * @param {string} [string=''] 模板字符串 + * @param {Object} [options] 选项对象 + * @param {RegExp} [options.escape] "escape" 分隔符 + * @param {RegExp} [options.evaluate] "evaluate" 分隔符 + * @param {Object} [options.imports] 导入对象到模板中作为自由变量 + * @param {RegExp} [options.interpolate] "interpolate" 分隔符 + * @param {string} [options.sourceURL] 模板编译的来源URL + * @param {string} [options.variable] 数据对象的变量名 * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`. - * @returns {Function} Returns the compiled template function. + * @returns {Function} 返回编译模板函数 * @example * - * // using the "interpolate" delimiter to create a compiled template + * // 使用 "interpolate" 分隔符创建编译模板 * var compiled = _.template('hello <%= user %>!'); * compiled({ 'user': 'fred' }); * // => 'hello fred!' * - * // using the HTML "escape" delimiter to escape data property values + * // 使用 HTML "escape" 转义数据的值 * var compiled = _.template('<%- value %>'); * compiled({ 'value': '\n
    " } ,{ "href":"/add", - "html":"

    add source npm

    \n
    _.add(augend, addend)
    \n\n

    相加两个数

    \n
    \n\n

    参数

    \n
      \n
    1. augend (number)

      相加的第一个数

      \n
    2. \n
    3. addend (number)

      相加的第二个数

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回总和

    \n
    \n

    示例

    \n
    _.add(6, 4);\n// => 10\n
    \n
    \n
    \n\n
    " } + "html":"

    add source npm

    \n
    _.add(augend, addend)
    \n\n

    相加两个数

    \n
    \n\n

    参数

    \n
      \n
    1. augend (number)

      相加的第一个数

      \n
    2. \n
    3. addend (number)

      相加的第二个数

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回总和

    \n
    \n

    示例

    \n
    _.add(6, 4);\n// => 10\n
    \n
    \n
    \n\n
    " } ,{ "href":"/ceil", - "html":"

    ceil source npm

    \n
    _.ceil(number, [precision=0])
    \n\n

    根据 precision 向上舍入 number

    \n
    \n\n

    参数

    \n
      \n
    1. number (number)

      要向上舍入的值

      \n
    2. \n
    3. [precision=0] (number)

      精度

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回向上舍入的结果

    \n
    \n

    示例

    \n
    _.ceil(4.006);\n// => 5\n\n_.ceil(6.004, 2);\n// => 6.01\n\n_.ceil(6040, -2);\n// => 6100\n
    \n
    \n
    \n\n
    " } + "html":"

    ceil source npm

    \n
    _.ceil(number, [precision=0])
    \n\n

    根据 precision 向上舍入 number

    \n
    \n\n

    参数

    \n
      \n
    1. number (number)

      要向上舍入的值

      \n
    2. \n
    3. [precision=0] (number)

      精度

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回向上舍入的结果

    \n
    \n

    示例

    \n
    _.ceil(4.006);\n// => 5\n\n_.ceil(6.004, 2);\n// => 6.01\n\n_.ceil(6040, -2);\n// => 6100\n
    \n
    \n
    \n\n
    " } ,{ "href":"/floor", - "html":"

    floor source npm

    \n
    _.floor(number, [precision=0])
    \n\n

    根据 precision 向下保留 number

    \n
    \n\n

    参数

    \n
      \n
    1. number (number)

      要向下保留的数

      \n
    2. \n
    3. [precision=0] (number)

      精度

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回向下保留的结果

    \n
    \n

    示例

    \n
    _.floor(4.006);\n// => 4\n\n_.floor(0.046, 2);\n// => 0.04\n\n_.floor(4060, -2);\n// => 4000\n
    \n
    \n
    \n\n
    " } + "html":"

    floor source npm

    \n
    _.floor(number, [precision=0])
    \n\n

    根据 precision 向下保留 number

    \n
    \n\n

    参数

    \n
      \n
    1. number (number)

      要向下保留的数

      \n
    2. \n
    3. [precision=0] (number)

      精度

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回向下保留的结果

    \n
    \n

    示例

    \n
    _.floor(4.006);\n// => 4\n\n_.floor(0.046, 2);\n// => 0.04\n\n_.floor(4060, -2);\n// => 4000\n
    \n
    \n
    \n\n
    " } ,{ "href":"/max", - "html":"

    max source npm

    \n
    _.max(array)
    \n\n

    计算 array 中最大的值。\n如果 array 是 空的或者假值将会返回 undefined。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要计算的数组

      \n
    2. \n
    \n

    返回值 (*)

    \n

    返回最大的值

    \n
    \n

    示例

    \n
    _.max([4, 2, 8, 6]);\n// => 8\n\n_.max([]);\n// => undefined\n
    \n
    \n
    \n\n
    " } + "html":"

    max source npm

    \n
    _.max(array)
    \n\n

    计算 array 中最大的值。\n如果 array 是 空的或者假值将会返回 undefined。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要计算的数组

      \n
    2. \n
    \n

    返回值 (*)

    \n

    返回最大的值

    \n
    \n

    示例

    \n
    _.max([4, 2, 8, 6]);\n// => 8\n\n_.max([]);\n// => undefined\n
    \n
    \n
    \n\n
    " } ,{ "href":"/maxBy", - "html":"

    maxBy source npm

    \n
    _.maxBy(array, [iteratee=_.identity])
    \n\n

    这个方法类似 _.max \n除了它接受 iteratee 调用每一个元素,根据返回的 value 决定排序准则。 \niteratee 会传入1个参数:(value)。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    3. [iteratee=_.identity] (Function|Object|string)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (*)

    \n

    返回最大值

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n_.maxBy(users, function(o) { return o.age; });\n// => { 'user': 'fred', 'age': 40 }\n\n// 使用了 `_.property` 的回调结果\n_.maxBy(users, 'age');\n// => { 'user': 'fred', 'age': 40 }\n
    \n
    \n
    \n\n
    " } + "html":"

    maxBy source npm

    \n
    _.maxBy(array, [iteratee=_.identity])
    \n\n

    这个方法类似 _.max \n除了它接受 iteratee 调用每一个元素,根据返回的 value 决定排序准则。 \niteratee 会传入1个参数:(value)。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    3. [iteratee=_.identity] (Function|Object|string)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (*)

    \n

    返回最大值

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n_.maxBy(users, function(o) { return o.age; });\n// => { 'user': 'fred', 'age': 40 }\n\n// 使用了 `_.property` 的回调结果\n_.maxBy(users, 'age');\n// => { 'user': 'fred', 'age': 40 }\n
    \n
    \n
    \n\n
    " } ,{ "href":"/mean", - "html":"

    mean source npm

    \n
    _.mean(array)
    \n\n

    计算 array 的平均值。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    \n

    返回值 (number)

    \n

    返回平均值

    \n
    \n

    示例

    \n
    _.mean([4, 2, 8, 6]);\n// => 5\n
    \n
    \n
    \n\n
    " } + "html":"

    mean source npm

    \n
    _.mean(array)
    \n\n

    计算 array 的平均值。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    \n

    返回值 (number)

    \n

    返回平均值

    \n
    \n

    示例

    \n
    _.mean([4, 2, 8, 6]);\n// => 5\n
    \n
    \n
    \n\n
    " } ,{ "href":"/min", - "html":"

    min source npm

    \n
    _.min(array)
    \n\n

    计算 array 中最小的值。 如果 array 是 空的或者假值将会返回 undefined。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要计算的数组

      \n
    2. \n
    \n

    返回值 (*)

    \n

    返回最小值

    \n
    \n

    示例

    \n
    _.min([4, 2, 8, 6]);\n// => 2\n\n_.min([]);\n// => undefined\n
    \n
    \n
    \n\n
    " } + "html":"

    min source npm

    \n
    _.min(array)
    \n\n

    计算 array 中最小的值。 如果 array 是 空的或者假值将会返回 undefined。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要计算的数组

      \n
    2. \n
    \n

    返回值 (*)

    \n

    返回最小值

    \n
    \n

    示例

    \n
    _.min([4, 2, 8, 6]);\n// => 2\n\n_.min([]);\n// => undefined\n
    \n
    \n
    \n\n
    " } ,{ "href":"/minBy", - "html":"

    minBy source npm

    \n
    _.minBy(array, [iteratee=_.identity])
    \n\n

    这个方法类似 _.min。\n除了它接受 iteratee 调用每一个元素,根据返回的 value 决定排序准则。 iteratee 会传入1个参数:(value)。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    3. [iteratee=_.identity] (Function|Object|string)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (*)

    \n

    返回最小值

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n_.minBy(users, function(o) { return o.age; });\n// => { 'user': 'barney', 'age': 36 }\n\n// 使用了 `_.property` 的回调结果\n_.minBy(users, 'age');\n// => { 'user': 'barney', 'age': 36 }\n
    \n
    \n
    \n\n
    " } + "html":"

    minBy source npm

    \n
    _.minBy(array, [iteratee=_.identity])
    \n\n

    这个方法类似 _.min。\n除了它接受 iteratee 调用每一个元素,根据返回的 value 决定排序准则。 iteratee 会传入1个参数:(value)。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    3. [iteratee=_.identity] (Function|Object|string)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (*)

    \n

    返回最小值

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n_.minBy(users, function(o) { return o.age; });\n// => { 'user': 'barney', 'age': 36 }\n\n// 使用了 `_.property` 的回调结果\n_.minBy(users, 'age');\n// => { 'user': 'barney', 'age': 36 }\n
    \n
    \n
    \n\n
    " } ,{ "href":"/round", - "html":"

    round source npm

    \n
    _.round(number, [precision=0])
    \n\n

    根据 precision 四舍五入 number。

    \n
    \n\n

    参数

    \n
      \n
    1. number (number)

      要四舍五入的值

      \n
    2. \n
    3. [precision=0] (number)

      精度

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回四舍五入的结果

    \n
    \n

    示例

    \n
    _.round(4.006);\n// => 4\n\n_.round(4.006, 2);\n// => 4.01\n\n_.round(4060, -2);\n// => 4100\n
    \n
    \n
    \n\n
    " } + "html":"

    round source npm

    \n
    _.round(number, [precision=0])
    \n\n

    根据 precision 四舍五入 number。

    \n
    \n\n

    参数

    \n
      \n
    1. number (number)

      要四舍五入的值

      \n
    2. \n
    3. [precision=0] (number)

      精度

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回四舍五入的结果

    \n
    \n

    示例

    \n
    _.round(4.006);\n// => 4\n\n_.round(4.006, 2);\n// => 4.01\n\n_.round(4060, -2);\n// => 4100\n
    \n
    \n
    \n\n
    " } ,{ "href":"/subtract", - "html":"

    subtract source npm

    \n
    _.subtract(minuend, subtrahend)
    \n\n

    两双相减

    \n
    \n\n

    参数

    \n
      \n
    1. minuend (number)

      相减的第一个数

      \n
    2. \n
    3. subtrahend (number)

      相减的第二个数

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回结果

    \n
    \n

    示例

    \n
    _.subtract(6, 4);\n// => 2\n
    \n
    \n
    \n\n
    " } + "html":"

    subtract source npm

    \n
    _.subtract(minuend, subtrahend)
    \n\n

    两双相减

    \n
    \n\n

    参数

    \n
      \n
    1. minuend (number)

      相减的第一个数

      \n
    2. \n
    3. subtrahend (number)

      相减的第二个数

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回结果

    \n
    \n

    示例

    \n
    _.subtract(6, 4);\n// => 2\n
    \n
    \n
    \n\n
    " } ,{ "href":"/sum", - "html":"

    sum source npm

    \n
    _.sum(array)
    \n\n

    计算 array 中值的总和

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    \n

    返回值 (number)

    \n

    返回总和

    \n
    \n

    示例

    \n
    _.sum([4, 2, 8, 6]);\n// => 20\n
    \n
    \n
    \n\n
    " } + "html":"

    sum source npm

    \n
    _.sum(array)
    \n\n

    计算 array 中值的总和

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    \n

    返回值 (number)

    \n

    返回总和

    \n
    \n

    示例

    \n
    _.sum([4, 2, 8, 6]);\n// => 20\n
    \n
    \n
    \n\n
    " } ,{ "href":"/sumBy", - "html":"

    sumBy source npm

    \n
    _.sumBy(array, [iteratee=_.identity])
    \n\n

    这个方法类似 _.sum。\n除了它接受 iteratee 调用每一个元素,根据返回的 value 决定如何计算。 \niteratee 会传入1个参数:(value)。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    3. [iteratee=_.identity] (Function|Object|string)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回总和

    \n
    \n

    示例

    \n
    var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n\n_.sumBy(objects, function(o) { return o.n; });\n// => 20\n\n// 使用了 `_.property` 的回调结果\n_.sumBy(objects, 'n');\n// => 20\n
    \n
    \n
    \n\n
    " } + "html":"

    sumBy source npm

    \n
    _.sumBy(array, [iteratee=_.identity])
    \n\n

    这个方法类似 _.sum。\n除了它接受 iteratee 调用每一个元素,根据返回的 value 决定如何计算。 \niteratee 会传入1个参数:(value)。

    \n
    \n\n

    参数

    \n
      \n
    1. array (Array)

      要遍历的数组

      \n
    2. \n
    3. [iteratee=_.identity] (Function|Object|string)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回总和

    \n
    \n

    示例

    \n
    var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n\n_.sumBy(objects, function(o) { return o.n; });\n// => 20\n\n// 使用了 `_.property` 的回调结果\n_.sumBy(objects, 'n');\n// => 20\n
    \n
    \n
    \n\n
    " } ,{ "href":"/stringSize", "html":"

    stringSize source

    \n
    stringSize(string)
    \n\n

    获得字符串的长度

    \n
    \n\n

    参数

    \n
      \n
    1. string (string)

      要处理的字符串

      \n
    2. \n
    \n

    返回值 (number)

    \n

    返回字符串长度

    \n
    \n
    \n\n
    " } ,{ "href":"/templateSettings-imports-_", @@ -465,7 +465,7 @@ ,{ "href":"/templateSettings-variable", "html":"

    templateSettings.variable source

    \n
    _.templateSettings.variable
    \n\n

    (string): 用于引用模板文本中的 data 对象

    \n
    \n\n
    \n\n
    " } ,{ "href":"/VERSION", - "html":"

    VERSION source

    \n
    _.VERSION
    \n\n

    (string): 语义化版本号

    \n
    \n\n
    \n\n
    " } + "html":"

    VERSION source

    \n
    _.VERSION
    \n\n

    (string): 语义化版本号

    \n
    \n\n
    \n\n
    " } ,{ "href":"/camelCase", "html":"

    camelCase source npm

    \n
    _.camelCase([string=''])
    \n\n

    转换字符串为 驼峰写法

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回驼峰写法的字符串

    \n
    \n

    示例

    \n
    _.camelCase('Foo Bar');\n// => 'fooBar'\n\n_.camelCase('--foo-bar');\n// => 'fooBar'\n\n_.camelCase('__foo_bar__');\n// => 'fooBar'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/capitalize", @@ -491,95 +491,95 @@ ,{ "href":"/padStart", "html":"

    padStart source npm

    \n
    _.padStart([string=''], [length=0], [chars=' '])
    \n\n

    如果字符串长度小于 length 则在左侧填充字符。 如果超出长度则截断超出的部分。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要填充的字符串

      \n
    2. \n
    3. [length=0] (number)

      填充的长度

      \n
    4. \n
    5. [chars=' '] (string)

      填充字符

      \n
    6. \n
    \n

    返回值 (string)

    \n

    Returns 返回填充后的字符串

    \n
    \n

    示例

    \n
    _.padStart('abc', 6);\n// => '   abc'\n\n_.padStart('abc', 6, '_-');\n// => '_-_abc'\n\n_.padStart('abc', 3);\n// => 'abc'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/parseInt", - "html":"

    parseInt source npm

    \n
    _.parseInt(string, [radix])
    \n\n

    Converts string to an integer of the specified radix. If radix is\nundefined or 0, a radix of 10 is used unless value is a hexadecimal,\nin which case a radix of 16 is used.\n
    \n
    \n注意: This method aligns with the ES5 implementation\nof parseInt.

    \n
    \n\n

    参数

    \n
      \n
    1. string (string)

      要转换的字符串

      \n
    2. \n
    3. [radix] (number)

      The radix to interpret value by.

      \n
    4. \n
    \n

    返回值 (number)

    \n

    Returns the converted integer.

    \n
    \n

    示例

    \n
    _.parseInt('08');\n// => 8\n\n_.map(['6', '08', '10'], _.parseInt);\n// => [6, 8, 10]\n
    \n
    \n
    \n\n
    " } + "html":"

    parseInt source npm

    \n
    _.parseInt(string, [radix])
    \n\n

    以指定的基数转换字符串为整数。\n如果基数是 undefined 或者 0,则基数默认是10,如果字符串是16进制,则基数为16。\n
    \n
    \n注意: 这个方法与 ES5 implementation\n的 parseInt 一致

    \n
    \n\n

    参数

    \n
      \n
    1. string (string)

      要转换的字符串

      \n
    2. \n
    3. [radix] (number)

      基数

      \n
    4. \n
    \n

    返回值 (number)

    \n

    返回转换后的整数

    \n
    \n

    示例

    \n
    _.parseInt('08');\n// => 8\n\n_.map(['6', '08', '10'], _.parseInt);\n// => [6, 8, 10]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/repeat", - "html":"

    repeat source npm

    \n
    _.repeat([string=''], [n=0])
    \n\n

    Repeats the given string n times.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to repeat.

      \n
    2. \n
    3. [n=0] (number)

      The number of times to repeat the string.

      \n
    4. \n
    \n

    返回值 (string)

    \n

    Returns the repeated string.

    \n
    \n

    示例

    \n
    _.repeat('*', 3);\n// => '***'\n\n_.repeat('abc', 2);\n// => 'abcabc'\n\n_.repeat('abc', 0);\n// => ''\n
    \n
    \n
    \n\n
    " } + "html":"

    repeat source npm

    \n
    _.repeat([string=''], [n=0])
    \n\n

    重复 N 次字符串

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要重复的字符串

      \n
    2. \n
    3. [n=0] (number)

      重复的次数

      \n
    4. \n
    \n

    返回值 (string)

    \n

    返回重复的字符串

    \n
    \n

    示例

    \n
    _.repeat('*', 3);\n// => '***'\n\n_.repeat('abc', 2);\n// => 'abcabc'\n\n_.repeat('abc', 0);\n// => ''\n
    \n
    \n
    \n\n
    " } ,{ "href":"/replace", - "html":"

    replace source npm

    \n
    _.replace([string=''], pattern, replacement)
    \n\n

    Replaces matches for pattern in string with replacement.\n
    \n
    \n注意: This method is based on String#replace.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to modify.

      \n
    2. \n
    3. pattern (RegExp|string)

      The pattern to replace.

      \n
    4. \n
    5. replacement (Function|string)

      The match replacement.

      \n
    6. \n
    \n

    返回值 (string)

    \n

    Returns the modified string.

    \n
    \n

    示例

    \n
    _.replace('Hi Fred', 'Fred', 'Barney');\n// => 'Hi Barney'\n
    \n
    \n
    \n\n
    " } + "html":"

    replace source npm

    \n
    _.replace([string=''], pattern, 要替换的内容)
    \n\n

    替换字符串中匹配的内容为给定的内容\n
    \n
    \n注意: 这个方法基于 String#replace

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      待替换的字符串

      \n
    2. \n
    3. pattern (RegExp|string)

      要匹配的内容

      \n
    4. \n
    5. 要替换的内容 (Function|string)
       
    6. \n
    \n

    返回值 (string)

    \n

    返回替换完成的字符串

    \n
    \n

    示例

    \n
    _.replace('Hi Fred', 'Fred', 'Barney');\n// => 'Hi Barney'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/snakeCase", - "html":"

    snakeCase source npm

    \n
    _.snakeCase([string=''])
    \n\n

    Converts string to snake case.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the snake cased string.

    \n
    \n

    示例

    \n
    _.snakeCase('Foo Bar');\n// => 'foo_bar'\n\n_.snakeCase('fooBar');\n// => 'foo_bar'\n\n_.snakeCase('--foo-bar');\n// => 'foo_bar'\n
    \n
    \n
    \n\n
    " } + "html":"

    snakeCase source npm

    \n
    _.snakeCase([string=''])
    \n\n

    转换字符串为 snake case

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回转换后的字符串

    \n
    \n

    示例

    \n
    _.snakeCase('Foo Bar');\n// => 'foo_bar'\n\n_.snakeCase('fooBar');\n// => 'foo_bar'\n\n_.snakeCase('--foo-bar');\n// => 'foo_bar'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/split", - "html":"

    split source npm

    \n
    _.split([string=''], separator, [limit])
    \n\n

    Splits string by separator.\n
    \n
    \n注意: This method is based on String#split.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to split.

      \n
    2. \n
    3. separator (RegExp|string)

      The separator pattern to split by.

      \n
    4. \n
    5. [limit] (number)

      The length to truncate results to.

      \n
    6. \n
    \n

    返回值 (Array)

    \n

    Returns the new array of string segments.

    \n
    \n

    示例

    \n
    _.split('a-b-c', '-', 2);\n// => ['a', 'b']\n
    \n
    \n
    \n\n
    " } + "html":"

    split source npm

    \n
    _.split([string=''], [separator], [limit])
    \n\n

    separator 拆分字符串\n
    \n
    \n注意: 这个方法基于 String#split

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要拆分的字符串

      \n
    2. \n
    3. [separator] (RegExp|string)

      拆分的分隔符

      \n
    4. \n
    5. [limit] (number)

      限制的数量

      \n
    6. \n
    \n

    返回值 (Array)

    \n

    返回拆分部分的字符串的数组

    \n
    \n

    示例

    \n
    _.split('a-b-c', '-', 2);\n// => ['a', 'b']\n
    \n
    \n
    \n\n
    " } ,{ "href":"/startCase", - "html":"

    startCase source npm

    \n
    _.startCase([string=''])
    \n\n

    Converts string to start case.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the start cased string.

    \n
    \n

    示例

    \n
    _.startCase('--foo-bar');\n// => 'Foo Bar'\n\n_.startCase('fooBar');\n// => 'Foo Bar'\n\n_.startCase('__foo_bar__');\n// => 'Foo Bar'\n
    \n
    \n
    \n\n
    " } + "html":"

    startCase source npm

    \n
    _.startCase([string=''])
    \n\n

    转换字符串为 start case

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回转换后的字符串

    \n
    \n

    示例

    \n
    _.startCase('--foo-bar');\n// => 'Foo Bar'\n\n_.startCase('fooBar');\n// => 'Foo Bar'\n\n_.startCase('__foo_bar__');\n// => 'Foo Bar'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/startsWith", - "html":"

    startsWith source npm

    \n
    _.startsWith([string=''], [target], [position=0])
    \n\n

    Checks if string starts with the given target string.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要检索的字符串

      \n
    2. \n
    3. [target] (string)

      The string to search for.

      \n
    4. \n
    5. [position=0] (number)

      检索的位置

      \n
    6. \n
    \n

    返回值 (boolean)

    \n

    Returns true if string starts with target否则返回 false

    \n
    \n

    示例

    \n
    _.startsWith('abc', 'a');\n// => true\n\n_.startsWith('abc', 'b');\n// => false\n\n_.startsWith('abc', 'b', 1);\n// => true\n
    \n
    \n
    \n\n
    " } + "html":"

    startsWith source npm

    \n
    _.startsWith([string=''], [target], [position=0])
    \n\n

    检查字符串是否以 target 开头。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要检索的字符串

      \n
    2. \n
    3. [target] (string)

      要检查的字符串

      \n
    4. \n
    5. [position=0] (number)

      检索的位置

      \n
    6. \n
    \n

    返回值 (boolean)

    \n

    如果符合条件返回true,否则返回 false

    \n
    \n

    示例

    \n
    _.startsWith('abc', 'a');\n// => true\n\n_.startsWith('abc', 'b');\n// => false\n\n_.startsWith('abc', 'b', 1);\n// => true\n
    \n
    \n
    \n\n
    " } ,{ "href":"/template", - "html":"

    template source npm

    \n
    _.template([string=''], [options])
    \n\n

    Creates a compiled template function that can interpolate data properties\nin "interpolate" delimiters, HTML-escape interpolated data properties in\n"escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data\nproperties may be accessed as free variables in the template. If a setting\nobject is provided it takes precedence over _.templateSettings values.\n
    \n
    \n注意: In the development build _.template utilizes\nsourceURLs\nfor easier debugging.\n
    \n
    \nFor more information on precompiling templates see\nlodash's custom builds documentation.\n
    \n
    \nFor more information on Chrome extension sandboxes see\nChrome's extensions documentation.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The template string.

      \n
    2. \n
    3. [options] (Object)

      The options object.

      \n
    4. \n
    5. [options.escape] (RegExp)

      The HTML "escape" delimiter.

      \n
    6. \n
    7. [options.evaluate] (RegExp)

      The "evaluate" delimiter.

      \n
    8. \n
    9. [options.imports] (Object)

      An object to import into the template as free variables.

      \n
    10. \n
    11. [options.interpolate] (RegExp)

      The "interpolate" delimiter.

      \n
    12. \n
    13. [options.sourceURL] (string)

      The sourceURL of the template's compiled source.

      \n
    14. \n
    15. [options.variable] (string)

      The data object variable name.

      \n
    16. \n
    \n

    返回值 (Function)

    \n

    Returns the compiled template function.

    \n
    \n

    示例

    \n
    // using the \"interpolate\" delimiter to create a compiled template\nvar compiled = _.template('hello <%= user %>!');\ncompiled({ 'user': 'fred' });\n// => 'hello fred!'\n\n// using the HTML \"escape\" delimiter to escape data property values\nvar compiled = _.template('<b><%- value %></b>');\ncompiled({ 'value': '<script>' });\n// => '<b>&lt;script&gt;</b>'\n\n// using the \"evaluate\" delimiter to execute JavaScript and generate HTML\nvar compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\ncompiled({ 'users': ['fred', 'barney'] });\n// => '<li>fred</li><li>barney</li>'\n\n// using the internal `print` function in \"evaluate\" delimiters\nvar compiled = _.template('<% print(\"hello \" + user); %>!');\ncompiled({ 'user': 'barney' });\n// => 'hello barney!'\n\n// using the ES delimiter as an alternative to the default \"interpolate\" delimiter\nvar compiled = _.template('hello ${ user }!');\ncompiled({ 'user': 'pebbles' });\n// => 'hello pebbles!'\n\n// using custom template delimiters\n_.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\nvar compiled = _.template('hello {{ user }}!');\ncompiled({ 'user': 'mustache' });\n// => 'hello mustache!'\n\n// using backslashes to treat delimiters as plain text\nvar compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\ncompiled({ 'value': 'ignored' });\n// => '<%- value %>'\n\n// using the `imports` option to import `jQuery` as `jq`\nvar text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\nvar compiled = _.template(text, { 'imports': { 'jq': jQuery } });\ncompiled({ 'users': ['fred', 'barney'] });\n// => '<li>fred</li><li>barney</li>'\n\n// using the `sourceURL` option to specify a custom sourceURL for the template\nvar compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\ncompiled(data);\n// => find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector\n\n// using the `variable` option to ensure a with-statement isn't used in the compiled template\nvar compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\ncompiled.source;\n// => function(data) {\n//   var __t, __p = '';\n//   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n//   return __p;\n// }\n\n// using the `source` property to inline compiled templates for meaningful\n// line numbers in error messages and a stack trace\nfs.writeFileSync(path.join(cwd, 'jst.js'), '\\\n  var JST = {\\\n    \"main\": ' + _.template(mainText).source + '\\\n  };\\\n');\n
    \n
    \n
    \n\n
    " } + "html":"

    template source npm

    \n
    _.template([string=''], [options])
    \n\n

    创建一个预编译模板方法,可以插入数据到模板中 "interpolate" 分隔符相应的位置。\nHTML会在 "escape" 分隔符中转换为相应实体。\n在 "evaluate" 分隔符中允许执行JavaScript代码。\n在模板中可以自由访问变量。\n如果设置了选项对象,则会优先覆盖 _.templateSettings 的值。\n
    \n
    \n注意: 在开发过程中可以使用\nsourceURLs\n便于调试。\n
    \n
    \n了解更多预编译模板的信息查看\nlodash的自定义构建文档\n
    \n
    \n了解更多 Chrome 沙箱扩展的信息查看\nChrome的扩展文档

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      模板字符串

      \n
    2. \n
    3. [options] (Object)

      选项对象

      \n
    4. \n
    5. [options.escape] (RegExp)

      "escape" 分隔符

      \n
    6. \n
    7. [options.evaluate] (RegExp)

      "evaluate" 分隔符

      \n
    8. \n
    9. [options.imports] (Object)

      导入对象到模板中作为自由变量

      \n
    10. \n
    11. [options.interpolate] (RegExp)

      "interpolate" 分隔符

      \n
    12. \n
    13. [options.sourceURL] (string)

      模板编译的来源URL

      \n
    14. \n
    15. [options.variable] (string)

      数据对象的变量名

      \n
    16. \n
    \n

    返回值 (Function)

    \n

    返回编译模板函数

    \n
    \n

    示例

    \n
    // 使用 \"interpolate\" 分隔符创建编译模板\nvar compiled = _.template('hello <%= user %>!');\ncompiled({ 'user': 'fred' });\n// => 'hello fred!'\n\n// 使用 HTML \"escape\" 转义数据的值\nvar compiled = _.template('<b><%- value %></b>');\ncompiled({ 'value': '<script>' });\n// => '<b>&lt;script&gt;</b>'\n\n// 使用 \"evaluate\" 分隔符执行 JavaScript 和 生成HTML代码\nvar compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\ncompiled({ 'users': ['fred', 'barney'] });\n// => '<li>fred</li><li>barney</li>'\n\n// 在 \"evaluate\" 分隔符中使用内部的 `print` 函数\nvar compiled = _.template('<% print(\"hello \" + user); %>!');\ncompiled({ 'user': 'barney' });\n// => 'hello barney!'\n\n// 使用 ES 分隔符代替默认的 \"interpolate\" 分隔符\nvar compiled = _.template('hello ${ user }!');\ncompiled({ 'user': 'pebbles' });\n// => 'hello pebbles!'\n\n// 使用自定义的模板分隔符\n_.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\nvar compiled = _.template('hello {{ user }}!');\ncompiled({ 'user': 'mustache' });\n// => 'hello mustache!'\n\n// 使用反斜杠符号作为纯文本处理\nvar compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\ncompiled({ 'value': 'ignored' });\n// => '<%- value %>'\n\n// 使用 `imports` 选项导入 `jq` 作为 `jQuery` 的别名\nvar text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\nvar compiled = _.template(text, { 'imports': { 'jq': jQuery } });\ncompiled({ 'users': ['fred', 'barney'] });\n// => '<li>fred</li><li>barney</li>'\n\n// 使用 `sourceURL` 选项指定模板的来源URL\nvar compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\ncompiled(data);\n// => 在开发工具的 Sources 选项卡 或 Resources 面板中找到 \"greeting.jst\"\n\n// 使用 `variable` 选项确保在编译模板中不声明变量\nvar compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\ncompiled.source;\n// => function(data) {\n//   var __t, __p = '';\n//   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n//   return __p;\n// }\n\n// 使用 `source` 特性内联编译模板\n// 便以查看行号、错误信息、堆栈\nfs.writeFileSync(path.join(cwd, 'jst.js'), '\\\n  var JST = {\\\n    \"main\": ' + _.template(mainText).source + '\\\n  };\\\n');\n
    \n
    \n
    \n\n
    " } ,{ "href":"/toLower", - "html":"

    toLower source npm

    \n
    _.toLower([string=''])
    \n\n

    Converts string, as a whole, to lower case.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the lower cased string.

    \n
    \n

    示例

    \n
    _.toLower('--Foo-Bar');\n// => '--foo-bar'\n\n_.toLower('fooBar');\n// => 'foobar'\n\n_.toLower('__FOO_BAR__');\n// => '__foo_bar__'\n
    \n
    \n
    \n\n
    " } + "html":"

    toLower source npm

    \n
    _.toLower([string=''])
    \n\n

    转换整体的字符串为小写

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回小写的字符串

    \n
    \n

    示例

    \n
    _.toLower('--Foo-Bar');\n// => '--foo-bar'\n\n_.toLower('fooBar');\n// => 'foobar'\n\n_.toLower('__FOO_BAR__');\n// => '__foo_bar__'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/toUpper", - "html":"

    toUpper source npm

    \n
    _.toUpper([string=''])
    \n\n

    Converts string, as a whole, to upper case.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the upper cased string.

    \n
    \n

    示例

    \n
    _.toUpper('--foo-bar');\n// => '--FOO-BAR'\n\n_.toUpper('fooBar');\n// => 'FOOBAR'\n\n_.toUpper('__foo_bar__');\n// => '__FOO_BAR__'\n
    \n
    \n
    \n\n
    " } + "html":"

    toUpper source npm

    \n
    _.toUpper([string=''])
    \n\n

    转换整体的字符串为大写

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回大写的字符串

    \n
    \n

    示例

    \n
    _.toUpper('--foo-bar');\n// => '--FOO-BAR'\n\n_.toUpper('fooBar');\n// => 'FOOBAR'\n\n_.toUpper('__foo_bar__');\n// => '__FOO_BAR__'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/trim", - "html":"

    trim source npm

    \n
    _.trim([string=''], [chars=whitespace])
    \n\n

    Removes leading and trailing whitespace or specified characters from string.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to trim.

      \n
    2. \n
    3. [chars=whitespace] (string)

      The characters to trim.

      \n
    4. \n
    \n

    返回值 (string)

    \n

    Returns the trimmed string.

    \n
    \n

    示例

    \n
    _.trim('  abc  ');\n// => 'abc'\n\n_.trim('-_-abc-_-', '_-');\n// => 'abc'\n\n_.map(['  foo  ', '  bar  '], _.trim);\n// => ['foo', 'bar']\n
    \n
    \n
    \n\n
    " } + "html":"

    trim source npm

    \n
    _.trim([string=''], [chars=whitespace])
    \n\n

    从字符串中移除前面和后面的空白 或 指定的字符。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要处理的字符串

      \n
    2. \n
    3. [chars=whitespace] (string)

      要处理的字符

      \n
    4. \n
    \n

    返回值 (string)

    \n

    返回处理后的字符串

    \n
    \n

    示例

    \n
    _.trim('  abc  ');\n// => 'abc'\n\n_.trim('-_-abc-_-', '_-');\n// => 'abc'\n\n_.map(['  foo  ', '  bar  '], _.trim);\n// => ['foo', 'bar']\n
    \n
    \n
    \n\n
    " } ,{ "href":"/trimEnd", - "html":"

    trimEnd source npm

    \n
    _.trimEnd([string=''], [chars=whitespace])
    \n\n

    Removes trailing whitespace or specified characters from string.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to trim.

      \n
    2. \n
    3. [chars=whitespace] (string)

      The characters to trim.

      \n
    4. \n
    \n

    返回值 (string)

    \n

    Returns the trimmed string.

    \n
    \n

    示例

    \n
    _.trimEnd('  abc  ');\n// => '  abc'\n\n_.trimEnd('-_-abc-_-', '_-');\n// => '-_-abc'\n
    \n
    \n
    \n\n
    " } + "html":"

    trimEnd source npm

    \n
    _.trimEnd([string=''], [chars=whitespace])
    \n\n

    移除字符串后面的空白 或 指定的字符。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要处理的字符串

      \n
    2. \n
    3. [chars=whitespace] (string)

      要处理的字符

      \n
    4. \n
    \n

    返回值 (string)

    \n

    返回处理后的字符串

    \n
    \n

    示例

    \n
    _.trimEnd('  abc  ');\n// => '  abc'\n\n_.trimEnd('-_-abc-_-', '_-');\n// => '-_-abc'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/trimStart", - "html":"

    trimStart source npm

    \n
    _.trimStart([string=''], [chars=whitespace])
    \n\n

    Removes leading whitespace or specified characters from string.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to trim.

      \n
    2. \n
    3. [chars=whitespace] (string)

      The characters to trim.

      \n
    4. \n
    \n

    返回值 (string)

    \n

    Returns the trimmed string.

    \n
    \n

    示例

    \n
    _.trimStart('  abc  ');\n// => 'abc  '\n\n_.trimStart('-_-abc-_-', '_-');\n// => 'abc-_-'\n
    \n
    \n
    \n\n
    " } + "html":"

    trimStart source npm

    \n
    _.trimStart([string=''], [chars=whitespace])
    \n\n

    移除字符串中前面的空白 或 指定的字符。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要处理的字符串

      \n
    2. \n
    3. [chars=whitespace] (string)

      要处理的字符

      \n
    4. \n
    \n

    返回值 (string)

    \n

    返回处理后的字符串

    \n
    \n

    示例

    \n
    _.trimStart('  abc  ');\n// => 'abc  '\n\n_.trimStart('-_-abc-_-', '_-');\n// => 'abc-_-'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/truncate", - "html":"

    truncate source npm

    \n
    _.truncate([string=''], [options])
    \n\n

    Truncates string if it's longer than the given maximum string length.\nThe last characters of the truncated string are replaced with the omission\nstring which defaults to "...".

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to truncate.

      \n
    2. \n
    3. [options] (Object)

      The options object.

      \n
    4. \n
    5. [options.length=30] (number)

      The maximum string length.

      \n
    6. \n
    7. [options.omission='...'] (string)

      The string to indicate text is omitted.

      \n
    8. \n
    9. [options.separator] (RegExp|string)

      The separator pattern to truncate to.

      \n
    10. \n
    \n

    返回值 (string)

    \n

    Returns the truncated string.

    \n
    \n

    示例

    \n
    _.truncate('hi-diddly-ho there, neighborino');\n// => 'hi-diddly-ho there, neighbo...'\n\n_.truncate('hi-diddly-ho there, neighborino', {\n  'length': 24,\n  'separator': ' '\n});\n// => 'hi-diddly-ho there,...'\n\n_.truncate('hi-diddly-ho there, neighborino', {\n  'length': 24,\n  'separator': /,? +/\n});\n// => 'hi-diddly-ho there...'\n\n_.truncate('hi-diddly-ho there, neighborino', {\n  'omission': ' [...]'\n});\n// => 'hi-diddly-ho there, neig [...]'\n
    \n
    \n
    \n\n
    " } + "html":"

    truncate source npm

    \n
    _.truncate([string=''], [options])
    \n\n

    截断字符串,如果字符串超出了限定的最大值。\n被截断的字符串后面会以 omission 代替,omission 默认是 "..."。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要截断的字符串

      \n
    2. \n
    3. [options] (Object)

      选项对象

      \n
    4. \n
    5. [options.length=30] (number)

      允许的最大长度

      \n
    6. \n
    7. [options.omission='...'] (string)

      超出后的代替字符

      \n
    8. \n
    9. [options.separator] (RegExp|string)

      截断点

      \n
    10. \n
    \n

    返回值 (string)

    \n

    返回截断后的字符串

    \n
    \n

    示例

    \n
    _.truncate('hi-diddly-ho there, neighborino');\n// => 'hi-diddly-ho there, neighbo...'\n\n_.truncate('hi-diddly-ho there, neighborino', {\n  'length': 24,\n  'separator': ' '\n});\n// => 'hi-diddly-ho there,...'\n\n_.truncate('hi-diddly-ho there, neighborino', {\n  'length': 24,\n  'separator': /,? +/\n});\n// => 'hi-diddly-ho there...'\n\n_.truncate('hi-diddly-ho there, neighborino', {\n  'omission': ' [...]'\n});\n// => 'hi-diddly-ho there, neig [...]'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/unescape", - "html":"

    unescape source npm

    \n
    _.unescape([string=''])
    \n\n

    The inverse of _.escape; this method converts the HTML entities\n&amp;, &lt;, &gt;, &quot;, &#39;, and &#96; in string to their\ncorresponding characters.\n
    \n
    \n注意: No other HTML entities are unescaped. To unescape additional HTML\nentities use a third-party library like he.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to unescape.

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the unescaped string.

    \n
    \n

    示例

    \n
    _.unescape('fred, barney, &amp; pebbles');\n// => 'fred, barney, & pebbles'\n
    \n
    \n
    \n\n
    " } + "html":"

    unescape source npm

    \n
    _.unescape([string=''])
    \n\n

    反向版 _.escape。\n这个方法转换 HTML 实体 \n&amp;, &lt;, &gt;, &quot;, &#39;, 以及 &#96; 为对应的字符。\n
    \n
    \n注意: 不会转换其他的 HTML 实体,需要转换可以使用类似 he 的第三方库。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回转换后的字符串

    \n
    \n

    示例

    \n
    _.unescape('fred, barney, &amp; pebbles');\n// => 'fred, barney, & pebbles'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/upperCase", - "html":"

    upperCase source npm

    \n
    _.upperCase([string=''])
    \n\n

    Converts string, as space separated words, to upper case.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the upper cased string.

    \n
    \n

    示例

    \n
    _.upperCase('--foo-bar');\n// => 'FOO BAR'\n\n_.upperCase('fooBar');\n// => 'FOO BAR'\n\n_.upperCase('__foo_bar__');\n// => 'FOO BAR'\n
    \n
    \n
    \n\n
    " } + "html":"

    upperCase source npm

    \n
    _.upperCase([string=''])
    \n\n

    转换字符串为空格分割的大写单词

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回大写单词

    \n
    \n

    示例

    \n
    _.upperCase('--foo-bar');\n// => 'FOO BAR'\n\n_.upperCase('fooBar');\n// => 'FOO BAR'\n\n_.upperCase('__foo_bar__');\n// => 'FOO BAR'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/upperFirst", "html":"

    upperFirst source npm

    \n
    _.upperFirst([string=''])
    \n\n

    转换首字母为大写。

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要转换的字符串

      \n
    2. \n
    \n

    返回值 (string)

    \n

    返回转换后的字符串

    \n
    \n

    示例

    \n
    _.upperFirst('fred');\n// => 'Fred'\n\n_.upperFirst('FRED');\n// => 'FRED'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/words", - "html":"

    words source npm

    \n
    _.words([string=''], [pattern])
    \n\n

    Splits string into an array of its words.

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      The string to inspect.

      \n
    2. \n
    3. [pattern] (RegExp|string)

      The pattern to match words.

      \n
    4. \n
    \n

    返回值 (Array)

    \n

    Returns the words of string.

    \n
    \n

    示例

    \n
    _.words('fred, barney, & pebbles');\n// => ['fred', 'barney', 'pebbles']\n\n_.words('fred, barney, & pebbles', /[^, ]+/g);\n// => ['fred', 'barney', '&', 'pebbles']\n
    \n
    \n
    \n\n
    " } + "html":"

    words source npm

    \n
    _.words([string=''], [pattern])
    \n\n

    拆分字符串中的词为数组

    \n
    \n\n

    参数

    \n
      \n
    1. [string=''] (string)

      要处理的字符串

      \n
    2. \n
    3. [pattern] (RegExp|string)

      匹配模式

      \n
    4. \n
    \n

    返回值 (Array)

    \n

    然后拆分后的数组

    \n
    \n

    示例

    \n
    _.words('fred, barney, & pebbles');\n// => ['fred', 'barney', 'pebbles']\n\n_.words('fred, barney, & pebbles', /[^, ]+/g);\n// => ['fred', 'barney', '&', 'pebbles']\n
    \n
    \n
    \n\n
    " } ,{ "href":"/attempt", - "html":"

    attempt source npm

    \n
    _.attempt(func)
    \n\n

    Attempts to invoke func, returning either the result or the caught error\nobject. Any additional arguments are provided to func when it's invoked.

    \n
    \n\n

    参数

    \n
      \n
    1. func (Function)

      The function to attempt.

      \n
    2. \n
    \n

    返回值 (*)

    \n

    Returns the func result or error object.

    \n
    \n

    示例

    \n
    // avoid throwing errors for invalid selectors\nvar elements = _.attempt(function(selector) {\n  return document.querySelectorAll(selector);\n}, '>_>');\n\nif (_.isError(elements)) {\n  elements = [];\n}\n
    \n
    \n
    \n\n
    " } + "html":"

    attempt source npm

    \n
    _.attempt(func)
    \n\n

    Attempts to invoke func, returning either the result or the caught error\nobject. Any additional arguments are provided to func when it's invoked.

    \n
    \n\n

    参数

    \n
      \n
    1. func (Function)

      The function to attempt.

      \n
    2. \n
    \n

    返回值 (*)

    \n

    Returns the func result or error object.

    \n
    \n

    示例

    \n
    // avoid throwing errors for invalid selectors\nvar elements = _.attempt(function(selector) {\n  return document.querySelectorAll(selector);\n}, '>_>');\n\nif (_.isError(elements)) {\n  elements = [];\n}\n
    \n
    \n
    \n\n
    " } ,{ "href":"/bindAll", - "html":"

    bindAll source npm

    \n
    _.bindAll(object, methodNames)
    \n\n

    Binds methods of an object to the object itself, overwriting the existing\nmethod.\n
    \n
    \n注意: This method doesn't set the "length" property of bound functions.

    \n
    \n\n

    参数

    \n
      \n
    1. object (Object)

      The object to bind and assign the bound methods to.

      \n
    2. \n
    3. methodNames (...(string|string[])

      The object method names to bind, specified individually or in arrays.

      \n
    4. \n
    \n

    返回值 (Object)

    \n

    返回对象

    \n
    \n

    示例

    \n
    var view = {\n  'label': 'docs',\n  'onClick': function() {\n    console.log('clicked ' + this.label);\n  }\n};\n\n_.bindAll(view, 'onClick');\njQuery(element).on('click', view.onClick);\n// => logs 'clicked docs' when clicked\n
    \n
    \n
    \n\n
    " } + "html":"

    bindAll source npm

    \n
    _.bindAll(object, methodNames)
    \n\n

    Binds methods of an object to the object itself, overwriting the existing\nmethod.\n
    \n
    \n注意: This method doesn't set the "length" property of bound functions.

    \n
    \n\n

    参数

    \n
      \n
    1. object (Object)

      The object to bind and assign the bound methods to.

      \n
    2. \n
    3. methodNames (...(string|string[])

      The object method names to bind, specified individually or in arrays.

      \n
    4. \n
    \n

    返回值 (Object)

    \n

    返回对象

    \n
    \n

    示例

    \n
    var view = {\n  'label': 'docs',\n  'onClick': function() {\n    console.log('clicked ' + this.label);\n  }\n};\n\n_.bindAll(view, 'onClick');\njQuery(element).on('click', view.onClick);\n// => logs 'clicked docs' when clicked\n
    \n
    \n
    \n\n
    " } ,{ "href":"/cond", - "html":"

    cond source npm

    \n
    _.cond(pairs)
    \n\n

    Creates a function that iterates over pairs invoking the corresponding\nfunction of the first predicate to return truthy. The predicate-function\npairs are invoked with the this binding and arguments of the created\nfunction.

    \n
    \n\n

    参数

    \n
      \n
    1. pairs (Array)

      The predicate-function pairs.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.cond([\n  [_.matches({ 'a': 1 }),           _.constant('matches A')],\n  [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],\n  [_.constant(true),                _.constant('no match')]\n])\n\nfunc({ 'a': 1, 'b': 2 });\n// => 'matches A'\n\nfunc({ 'a': 0, 'b': 1 });\n// => 'matches B'\n\nfunc({ 'a': '1', 'b': '2' });\n// => 'no match'\n
    \n
    \n
    \n\n
    " } + "html":"

    cond source npm

    \n
    _.cond(pairs)
    \n\n

    Creates a function that iterates over pairs invoking the corresponding\nfunction of the first predicate to return truthy. The predicate-function\npairs are invoked with the this binding and arguments of the created\nfunction.

    \n
    \n\n

    参数

    \n
      \n
    1. pairs (Array)

      The predicate-function pairs.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.cond([\n  [_.matches({ 'a': 1 }),           _.constant('matches A')],\n  [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],\n  [_.constant(true),                _.constant('no match')]\n])\n\nfunc({ 'a': 1, 'b': 2 });\n// => 'matches A'\n\nfunc({ 'a': 0, 'b': 1 });\n// => 'matches B'\n\nfunc({ 'a': '1', 'b': '2' });\n// => 'no match'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/conforms", - "html":"

    conforms source npm

    \n
    _.conforms(source)
    \n\n

    Creates a function that invokes the predicate properties of source with\nthe corresponding property values of a given object, returning true if\nall predicates return truthy否则返回 false

    \n
    \n\n

    参数

    \n
      \n
    1. source (Object)

      The object of property predicates to conform to.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n_.filter(users, _.conforms({ 'age': _.partial(_.gt, _, 38) }));\n// => [{ 'user': 'fred', 'age': 40 }]\n
    \n
    \n
    \n\n
    " } + "html":"

    conforms source npm

    \n
    _.conforms(source)
    \n\n

    Creates a function that invokes the predicate properties of source with\nthe corresponding property values of a given object, returning true if\nall predicates return truthy否则返回 false

    \n
    \n\n

    参数

    \n
      \n
    1. source (Object)

      The object of property predicates to conform to.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n_.filter(users, _.conforms({ 'age': _.partial(_.gt, _, 38) }));\n// => [{ 'user': 'fred', 'age': 40 }]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/constant", - "html":"

    constant source npm

    \n
    _.constant(value)
    \n\n

    Creates a function that returns value.

    \n
    \n\n

    参数

    \n
      \n
    1. value (*)

      The value to return from the new function.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var object = { 'user': 'fred' };\nvar getter = _.constant(object);\n\ngetter() === object;\n// => true\n
    \n
    \n
    \n\n
    " } + "html":"

    constant source npm

    \n
    _.constant(value)
    \n\n

    Creates a function that returns value.

    \n
    \n\n

    参数

    \n
      \n
    1. value (*)

      The value to return from the new function.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var object = { 'user': 'fred' };\nvar getter = _.constant(object);\n\ngetter() === object;\n// => true\n
    \n
    \n
    \n\n
    " } ,{ "href":"/flow", - "html":"

    flow source npm

    \n
    _.flow([funcs])
    \n\n

    Creates a function that returns the result of invoking the provided\nfunctions with the this binding of the created function, where each\nsuccessive invocation is supplied the return value of the previous.

    \n
    \n\n

    参数

    \n
      \n
    1. [funcs] (...(Function|Function[])

      Functions to invoke.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    function square(n) {\n  return n * n;\n}\n\nvar addSquare = _.flow(_.add, square);\naddSquare(1, 2);\n// => 9\n
    \n
    \n
    \n\n
    " } + "html":"

    flow source npm

    \n
    _.flow([funcs])
    \n\n

    Creates a function that returns the result of invoking the provided\nfunctions with the this binding of the created function, where each\nsuccessive invocation is supplied the return value of the previous.

    \n
    \n\n

    参数

    \n
      \n
    1. [funcs] (...(Function|Function[])

      Functions to invoke.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    function square(n) {\n  return n * n;\n}\n\nvar addSquare = _.flow(_.add, square);\naddSquare(1, 2);\n// => 9\n
    \n
    \n
    \n\n
    " } ,{ "href":"/flowRight", - "html":"

    flowRight source npm

    \n
    _.flowRight([funcs])
    \n\n

    这个方法类似 _.flow except that it creates a function that\ninvokes the provided functions from right to left.

    \n
    \n\n

    参数

    \n
      \n
    1. [funcs] (...(Function|Function[])

      Functions to invoke.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    function square(n) {\n  return n * n;\n}\n\nvar addSquare = _.flowRight(square, _.add);\naddSquare(1, 2);\n// => 9\n
    \n
    \n
    \n\n
    " } + "html":"

    flowRight source npm

    \n
    _.flowRight([funcs])
    \n\n

    这个方法类似 _.flow except that it creates a function that\ninvokes the provided functions from right to left.

    \n
    \n\n

    参数

    \n
      \n
    1. [funcs] (...(Function|Function[])

      Functions to invoke.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    function square(n) {\n  return n * n;\n}\n\nvar addSquare = _.flowRight(square, _.add);\naddSquare(1, 2);\n// => 9\n
    \n
    \n
    \n\n
    " } ,{ "href":"/identity", - "html":"

    identity source npm

    \n
    _.identity(value)
    \n\n

    This method returns the first argument provided to it.

    \n
    \n\n

    参数

    \n
      \n
    1. value (*)

      Any value.

      \n
    2. \n
    \n

    返回值 (*)

    \n

    Returns value.

    \n
    \n

    示例

    \n
    var object = { 'user': 'fred' };\n\n_.identity(object) === object;\n// => true\n
    \n
    \n
    \n\n
    " } + "html":"

    identity source npm

    \n
    _.identity(value)
    \n\n

    This method returns the first argument provided to it.

    \n
    \n\n

    参数

    \n
      \n
    1. value (*)

      Any value.

      \n
    2. \n
    \n

    返回值 (*)

    \n

    Returns value.

    \n
    \n

    示例

    \n
    var object = { 'user': 'fred' };\n\n_.identity(object) === object;\n// => true\n
    \n
    \n
    \n\n
    " } ,{ "href":"/iteratee", - "html":"

    iteratee source npm

    \n
    _.iteratee([func=_.identity])
    \n\n

    创建一个调用 func 的函数。 with the arguments of the created\nfunction. If func is a property name the created callback returns the\nproperty value for a given element. If func is an object the created\ncallback returns true for elements that contain the equivalent object properties, otherwise it returns false.

    \n
    \n\n

    参数

    \n
      \n
    1. [func=_.identity] (*)

      The value to convert to a callback.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the callback.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n// wrap to create custom callback shorthands\n_.iteratee = _.wrap(_.iteratee, function(callback, func, thisArg) {\n  var match = /^(.+?)__([gl]t)(.+)$/.exec(func);\n  if (!match) {\n    return callback(func, thisArg);\n  }\n  return function(object) {\n    return match[2] == 'gt'\n      ? object[match[1]] > match[3]\n      : object[match[1]] < match[3];\n  };\n});\n\n_.filter(users, 'age__gt36');\n// => [{ 'user': 'fred', 'age': 40 }]\n
    \n
    \n
    \n\n
    " } + "html":"

    iteratee source npm

    \n
    _.iteratee([func=_.identity])
    \n\n

    创建一个调用 func 的函数。 with the arguments of the created\nfunction. If func is a property name the created callback returns the\nproperty value for a given element. If func is an object the created\ncallback returns true for elements that contain the equivalent object properties, otherwise it returns false.

    \n
    \n\n

    参数

    \n
      \n
    1. [func=_.identity] (*)

      The value to convert to a callback.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the callback.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36 },\n  { 'user': 'fred',   'age': 40 }\n];\n\n// wrap to create custom callback shorthands\n_.iteratee = _.wrap(_.iteratee, function(callback, func, thisArg) {\n  var match = /^(.+?)__([gl]t)(.+)$/.exec(func);\n  if (!match) {\n    return callback(func, thisArg);\n  }\n  return function(object) {\n    return match[2] == 'gt'\n      ? object[match[1]] > match[3]\n      : object[match[1]] < match[3];\n  };\n});\n\n_.filter(users, 'age__gt36');\n// => [{ 'user': 'fred', 'age': 40 }]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/matches", - "html":"

    matches source npm

    \n
    _.matches(source)
    \n\n

    Creates a function that performs a deep partial comparison between a given\nobject and source, returning true if the given object has equivalent\nproperty values否则返回 false\n
    \n
    \n注意: This method supports comparing the same values as _.isEqual.

    \n
    \n\n

    参数

    \n
      \n
    1. source (Object)

      The object of property values to match.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36, 'active': true },\n  { 'user': 'fred',   'age': 40, 'active': false }\n];\n\n_.filter(users, _.matches({ 'age': 40, 'active': false }));\n// => [{ 'user': 'fred', 'age': 40, 'active': false }]\n
    \n
    \n
    \n\n
    " } + "html":"

    matches source npm

    \n
    _.matches(source)
    \n\n

    Creates a function that performs a deep partial comparison between a given\nobject and source, returning true if the given object has equivalent\nproperty values否则返回 false\n
    \n
    \n注意: This method supports comparing the same values as _.isEqual.

    \n
    \n\n

    参数

    \n
      \n
    1. source (Object)

      The object of property values to match.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney', 'age': 36, 'active': true },\n  { 'user': 'fred',   'age': 40, 'active': false }\n];\n\n_.filter(users, _.matches({ 'age': 40, 'active': false }));\n// => [{ 'user': 'fred', 'age': 40, 'active': false }]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/matchesProperty", - "html":"

    matchesProperty source npm

    \n
    _.matchesProperty(path, srcValue)
    \n\n

    Creates a function that performs a deep partial comparison between the\nvalue at path of a given object to srcValue, returning true if the\nobject value is equivalent否则返回 false\n
    \n
    \n注意: This method supports comparing the same values as _.isEqual.

    \n
    \n\n

    参数

    \n
      \n
    1. path (Array|string)

      The path of the property to get.

      \n
    2. \n
    3. srcValue (*)

      The value to match.

      \n
    4. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney' },\n  { 'user': 'fred' }\n];\n\n_.find(users, _.matchesProperty('user', 'fred'));\n// => { 'user': 'fred' }\n
    \n
    \n
    \n\n
    " } + "html":"

    matchesProperty source npm

    \n
    _.matchesProperty(path, srcValue)
    \n\n

    Creates a function that performs a deep partial comparison between the\nvalue at path of a given object to srcValue, returning true if the\nobject value is equivalent否则返回 false\n
    \n
    \n注意: This method supports comparing the same values as _.isEqual.

    \n
    \n\n

    参数

    \n
      \n
    1. path (Array|string)

      The path of the property to get.

      \n
    2. \n
    3. srcValue (*)

      The value to match.

      \n
    4. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var users = [\n  { 'user': 'barney' },\n  { 'user': 'fred' }\n];\n\n_.find(users, _.matchesProperty('user', 'fred'));\n// => { 'user': 'fred' }\n
    \n
    \n
    \n\n
    " } ,{ "href":"/method", - "html":"

    method source npm

    \n
    _.method(path, [args])
    \n\n

    Creates a function that invokes the method at path of a given object.\nAny additional arguments are provided to the invoked method.

    \n
    \n\n

    参数

    \n
      \n
    1. path (Array|string)

      The path of the method to invoke.

      \n
    2. \n
    3. [args] (...*)

      The arguments to invoke the method with.

      \n
    4. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var objects = [\n  { 'a': { 'b': { 'c': _.constant(2) } } },\n  { 'a': { 'b': { 'c': _.constant(1) } } }\n];\n\n_.map(objects, _.method('a.b.c'));\n// => [2, 1]\n\n_.invokeMap(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');\n// => [1, 2]\n
    \n
    \n
    \n\n
    " } + "html":"

    method source npm

    \n
    _.method(path, [args])
    \n\n

    Creates a function that invokes the method at path of a given object.\nAny additional arguments are provided to the invoked method.

    \n
    \n\n

    参数

    \n
      \n
    1. path (Array|string)

      The path of the method to invoke.

      \n
    2. \n
    3. [args] (...*)

      The arguments to invoke the method with.

      \n
    4. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var objects = [\n  { 'a': { 'b': { 'c': _.constant(2) } } },\n  { 'a': { 'b': { 'c': _.constant(1) } } }\n];\n\n_.map(objects, _.method('a.b.c'));\n// => [2, 1]\n\n_.invokeMap(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');\n// => [1, 2]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/methodOf", - "html":"

    methodOf source npm

    \n
    _.methodOf(object, [args])
    \n\n

    The opposite of _.method; this method creates a function that invokes\nthe method at a given path of object. Any additional arguments are\nprovided to the invoked method.

    \n
    \n\n

    参数

    \n
      \n
    1. object (Object)

      要检索的对象

      \n
    2. \n
    3. [args] (...*)

      The arguments to invoke the method with.

      \n
    4. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var array = _.times(3, _.constant),\n    object = { 'a': array, 'b': array, 'c': array };\n\n_.map(['a[2]', 'c[0]'], _.methodOf(object));\n// => [2, 0]\n\n_.map([['a', '2'], ['c', '0']], _.methodOf(object));\n// => [2, 0]\n
    \n
    \n
    \n\n
    " } + "html":"

    methodOf source npm

    \n
    _.methodOf(object, [args])
    \n\n

    The opposite of _.method; this method creates a function that invokes\nthe method at a given path of object. Any additional arguments are\nprovided to the invoked method.

    \n
    \n\n

    参数

    \n
      \n
    1. object (Object)

      要检索的对象

      \n
    2. \n
    3. [args] (...*)

      The arguments to invoke the method with.

      \n
    4. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var array = _.times(3, _.constant),\n    object = { 'a': array, 'b': array, 'c': array };\n\n_.map(['a[2]', 'c[0]'], _.methodOf(object));\n// => [2, 0]\n\n_.map([['a', '2'], ['c', '0']], _.methodOf(object));\n// => [2, 0]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/mixin", - "html":"

    mixin source npm

    \n
    _.mixin([object=lodash], source, [options])
    \n\n

    Adds all own enumerable function properties of a source object to the\ndestination object. If object is a function then methods are added to\nits prototype as well.\n
    \n
    \n注意: Use _.runInContext to create a pristine lodash function to\navoid conflicts caused by modifying the original.

    \n
    \n\n

    参数

    \n
      \n
    1. [object=lodash] (Function|Object)

      目标对象

      \n
    2. \n
    3. source (Object)

      The object of functions to add.

      \n
    4. \n
    5. [options] (Object)

      The options object.

      \n
    6. \n
    7. [options.chain=true] (boolean)

      Specify whether the functions added are chainable.

      \n
    8. \n
    \n

    返回值 (Function|Object)

    \n

    返回对象

    \n
    \n

    示例

    \n
    function vowels(string) {\n  return _.filter(string, function(v) {\n    return /[aeiou]/i.test(v);\n  });\n}\n\n_.mixin({ 'vowels': vowels });\n_.vowels('fred');\n// => ['e']\n\n_('fred').vowels().value();\n// => ['e']\n\n_.mixin({ 'vowels': vowels }, { 'chain': false });\n_('fred').vowels();\n// => ['e']\n
    \n
    \n
    \n\n
    " } + "html":"

    mixin source npm

    \n
    _.mixin([object=lodash], source, [options])
    \n\n

    Adds all own enumerable function properties of a source object to the\ndestination object. If object is a function then methods are added to\nits prototype as well.\n
    \n
    \n注意: Use _.runInContext to create a pristine lodash function to\navoid conflicts caused by modifying the original.

    \n
    \n\n

    参数

    \n
      \n
    1. [object=lodash] (Function|Object)

      目标对象

      \n
    2. \n
    3. source (Object)

      The object of functions to add.

      \n
    4. \n
    5. [options] (Object)

      The options object.

      \n
    6. \n
    7. [options.chain=true] (boolean)

      Specify whether the functions added are chainable.

      \n
    8. \n
    \n

    返回值 (Function|Object)

    \n

    返回对象

    \n
    \n

    示例

    \n
    function vowels(string) {\n  return _.filter(string, function(v) {\n    return /[aeiou]/i.test(v);\n  });\n}\n\n_.mixin({ 'vowels': vowels });\n_.vowels('fred');\n// => ['e']\n\n_('fred').vowels().value();\n// => ['e']\n\n_.mixin({ 'vowels': vowels }, { 'chain': false });\n_('fred').vowels();\n// => ['e']\n
    \n
    \n
    \n\n
    " } ,{ "href":"/noConflict", - "html":"

    noConflict source npm

    \n
    _.noConflict()
    \n\n

    Reverts the _ variable to its previous value and returns a reference to\nthe lodash function.

    \n
    \n\n

    返回值 (Function)

    \n

    Returns the lodash function.

    \n
    \n

    示例

    \n
    var lodash = _.noConflict();\n
    \n
    \n
    \n\n
    " } + "html":"

    noConflict source npm

    \n
    _.noConflict()
    \n\n

    Reverts the _ variable to its previous value and returns a reference to\nthe lodash function.

    \n
    \n\n

    返回值 (Function)

    \n

    Returns the lodash function.

    \n
    \n

    示例

    \n
    var lodash = _.noConflict();\n
    \n
    \n
    \n\n
    " } ,{ "href":"/noop", - "html":"

    noop source npm

    \n
    _.noop()
    \n\n

    A no-operation function that returns undefined regardless of the\narguments it receives.

    \n
    \n\n

    示例

    \n
    var object = { 'user': 'fred' };\n\n_.noop(object) === undefined;\n// => true\n
    \n
    \n
    \n\n
    " } + "html":"

    noop source npm

    \n
    _.noop()
    \n\n

    A no-operation function that returns undefined regardless of the\narguments it receives.

    \n
    \n\n

    示例

    \n
    var object = { 'user': 'fred' };\n\n_.noop(object) === undefined;\n// => true\n
    \n
    \n
    \n\n
    " } ,{ "href":"/nthArg", - "html":"

    nthArg source npm

    \n
    _.nthArg([n=0])
    \n\n

    Creates a function that returns its nth argument.

    \n
    \n\n

    参数

    \n
      \n
    1. [n=0] (number)

      The index of the argument to return.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.nthArg(1);\n\nfunc('a', 'b', 'c');\n// => 'b'\n
    \n
    \n
    \n\n
    " } + "html":"

    nthArg source npm

    \n
    _.nthArg([n=0])
    \n\n

    Creates a function that returns its nth argument.

    \n
    \n\n

    参数

    \n
      \n
    1. [n=0] (number)

      The index of the argument to return.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.nthArg(1);\n\nfunc('a', 'b', 'c');\n// => 'b'\n
    \n
    \n
    \n\n
    " } ,{ "href":"/over", - "html":"

    over source npm

    \n
    _.over(iteratees)
    \n\n

    Creates a function that invokes iteratees with the arguments provided\nto the created function and returns their results.

    \n
    \n\n

    参数

    \n
      \n
    1. iteratees (...(Function|Function[])

      The iteratees to invoke.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.over(Math.max, Math.min);\n\nfunc(1, 2, 3, 4);\n// => [4, 1]\n
    \n
    \n
    \n\n
    " } + "html":"

    over source npm

    \n
    _.over(iteratees)
    \n\n

    Creates a function that invokes iteratees with the arguments provided\nto the created function and returns their results.

    \n
    \n\n

    参数

    \n
      \n
    1. iteratees (...(Function|Function[])

      The iteratees to invoke.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.over(Math.max, Math.min);\n\nfunc(1, 2, 3, 4);\n// => [4, 1]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/overEvery", - "html":"

    overEvery source npm

    \n
    _.overEvery(predicates)
    \n\n

    Creates a function that checks if all of the predicates return\ntruthy when invoked with the arguments provided to the created function.

    \n
    \n\n

    参数

    \n
      \n
    1. predicates (...(Function|Function[])

      The predicates to check.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.overEvery(Boolean, isFinite);\n\nfunc('1');\n// => true\n\nfunc(null);\n// => false\n\nfunc(NaN);\n// => false\n
    \n
    \n
    \n\n
    " } + "html":"

    overEvery source npm

    \n
    _.overEvery(predicates)
    \n\n

    Creates a function that checks if all of the predicates return\ntruthy when invoked with the arguments provided to the created function.

    \n
    \n\n

    参数

    \n
      \n
    1. predicates (...(Function|Function[])

      The predicates to check.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.overEvery(Boolean, isFinite);\n\nfunc('1');\n// => true\n\nfunc(null);\n// => false\n\nfunc(NaN);\n// => false\n
    \n
    \n
    \n\n
    " } ,{ "href":"/overSome", - "html":"

    overSome source npm

    \n
    _.overSome(predicates)
    \n\n

    Creates a function that checks if any of the predicates return\ntruthy when invoked with the arguments provided to the created function.

    \n
    \n\n

    参数

    \n
      \n
    1. predicates (...(Function|Function[])

      The predicates to check.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.overSome(Boolean, isFinite);\n\nfunc('1');\n// => true\n\nfunc(null);\n// => true\n\nfunc(NaN);\n// => false\n
    \n
    \n
    \n\n
    " } + "html":"

    overSome source npm

    \n
    _.overSome(predicates)
    \n\n

    Creates a function that checks if any of the predicates return\ntruthy when invoked with the arguments provided to the created function.

    \n
    \n\n

    参数

    \n
      \n
    1. predicates (...(Function|Function[])

      The predicates to check.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var func = _.overSome(Boolean, isFinite);\n\nfunc('1');\n// => true\n\nfunc(null);\n// => true\n\nfunc(NaN);\n// => false\n
    \n
    \n
    \n\n
    " } ,{ "href":"/property", - "html":"

    property source npm

    \n
    _.property(path)
    \n\n

    Creates a function that returns the value at path of a given object.

    \n
    \n\n

    参数

    \n
      \n
    1. path (Array|string)

      The path of the property to get.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var objects = [\n  { 'a': { 'b': { 'c': 2 } } },\n  { 'a': { 'b': { 'c': 1 } } }\n];\n\n_.map(objects, _.property('a.b.c'));\n// => [2, 1]\n\n_.map(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');\n// => [1, 2]\n
    \n
    \n
    \n\n
    " } + "html":"

    property source npm

    \n
    _.property(path)
    \n\n

    Creates a function that returns the value at path of a given object.

    \n
    \n\n

    参数

    \n
      \n
    1. path (Array|string)

      The path of the property to get.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var objects = [\n  { 'a': { 'b': { 'c': 2 } } },\n  { 'a': { 'b': { 'c': 1 } } }\n];\n\n_.map(objects, _.property('a.b.c'));\n// => [2, 1]\n\n_.map(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');\n// => [1, 2]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/propertyOf", - "html":"

    propertyOf source npm

    \n
    _.propertyOf(object)
    \n\n

    The opposite of _.property; this method creates a function that returns\nthe value at a given path of object.

    \n
    \n\n

    参数

    \n
      \n
    1. object (Object)

      要检索的对象

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var array = [0, 1, 2],\n    object = { 'a': array, 'b': array, 'c': array };\n\n_.map(['a[2]', 'c[0]'], _.propertyOf(object));\n// => [2, 0]\n\n_.map([['a', '2'], ['c', '0']], _.propertyOf(object));\n// => [2, 0]\n
    \n
    \n
    \n\n
    " } + "html":"

    propertyOf source npm

    \n
    _.propertyOf(object)
    \n\n

    The opposite of _.property; this method creates a function that returns\nthe value at a given path of object.

    \n
    \n\n

    参数

    \n
      \n
    1. object (Object)

      要检索的对象

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns the new function.

    \n
    \n

    示例

    \n
    var array = [0, 1, 2],\n    object = { 'a': array, 'b': array, 'c': array };\n\n_.map(['a[2]', 'c[0]'], _.propertyOf(object));\n// => [2, 0]\n\n_.map([['a', '2'], ['c', '0']], _.propertyOf(object));\n// => [2, 0]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/range", - "html":"

    range source npm

    \n
    _.range([start=0], end, [step=1])
    \n\n

    Creates an array of numbers (positive and/or negative) progressing from\nstart up to, but not including, end. A step of -1 is used if a negative\nstart is specified without an end or step. If end is not specified\nit's set to start with start then set to 0. If end is less than\nstart a zero-length range is created unless a negative step is specified.\n
    \n
    \n注意: JavaScript follows the IEEE-754 standard for resolving\nfloating-point values which can produce unexpected results.

    \n
    \n\n

    参数

    \n
      \n
    1. [start=0] (number)

      The start of the range.

      \n
    2. \n
    3. end (number)

      The end of the range.

      \n
    4. \n
    5. [step=1] (number)

      The value to increment or decrement by.

      \n
    6. \n
    \n

    返回值 (Array)

    \n

    Returns the new array of numbers.

    \n
    \n

    示例

    \n
    _.range(4);\n// => [0, 1, 2, 3]\n\n_.range(-4);\n// => [0, -1, -2, -3]\n\n_.range(1, 5);\n// => [1, 2, 3, 4]\n\n_.range(0, 20, 5);\n// => [0, 5, 10, 15]\n\n_.range(0, -4, -1);\n// => [0, -1, -2, -3]\n\n_.range(1, 4, 0);\n// => [1, 1, 1]\n\n_.range(0);\n// => []\n
    \n
    \n
    \n\n
    " } + "html":"

    range source npm

    \n
    _.range([start=0], end, [step=1])
    \n\n

    Creates an array of numbers (positive and/or negative) progressing from\nstart up to, but not including, end. A step of -1 is used if a negative\nstart is specified without an end or step. If end is not specified\nit's set to start with start then set to 0. If end is less than\nstart a zero-length range is created unless a negative step is specified.\n
    \n
    \n注意: JavaScript follows the IEEE-754 standard for resolving\nfloating-point values which can produce unexpected results.

    \n
    \n\n

    参数

    \n
      \n
    1. [start=0] (number)

      The start of the range.

      \n
    2. \n
    3. end (number)

      The end of the range.

      \n
    4. \n
    5. [step=1] (number)

      The value to increment or decrement by.

      \n
    6. \n
    \n

    返回值 (Array)

    \n

    Returns the new array of numbers.

    \n
    \n

    示例

    \n
    _.range(4);\n// => [0, 1, 2, 3]\n\n_.range(-4);\n// => [0, -1, -2, -3]\n\n_.range(1, 5);\n// => [1, 2, 3, 4]\n\n_.range(0, 20, 5);\n// => [0, 5, 10, 15]\n\n_.range(0, -4, -1);\n// => [0, -1, -2, -3]\n\n_.range(1, 4, 0);\n// => [1, 1, 1]\n\n_.range(0);\n// => []\n
    \n
    \n
    \n\n
    " } ,{ "href":"/rangeRight", - "html":"

    rangeRight source npm

    \n
    _.rangeRight([start=0], end, [step=1])
    \n\n

    这个方法类似 _.range except that it populates values in\ndescending order.

    \n
    \n\n

    参数

    \n
      \n
    1. [start=0] (number)

      The start of the range.

      \n
    2. \n
    3. end (number)

      The end of the range.

      \n
    4. \n
    5. [step=1] (number)

      The value to increment or decrement by.

      \n
    6. \n
    \n

    返回值 (Array)

    \n

    Returns the new array of numbers.

    \n
    \n

    示例

    \n
    _.rangeRight(4);\n// => [3, 2, 1, 0]\n\n_.rangeRight(-4);\n// => [-3, -2, -1, 0]\n\n_.rangeRight(1, 5);\n// => [4, 3, 2, 1]\n\n_.rangeRight(0, 20, 5);\n// => [15, 10, 5, 0]\n\n_.rangeRight(0, -4, -1);\n// => [-3, -2, -1, 0]\n\n_.rangeRight(1, 4, 0);\n// => [1, 1, 1]\n\n_.rangeRight(0);\n// => []\n
    \n
    \n
    \n\n
    " } + "html":"

    rangeRight source npm

    \n
    _.rangeRight([start=0], end, [step=1])
    \n\n

    这个方法类似 _.range except that it populates values in\ndescending order.

    \n
    \n\n

    参数

    \n
      \n
    1. [start=0] (number)

      The start of the range.

      \n
    2. \n
    3. end (number)

      The end of the range.

      \n
    4. \n
    5. [step=1] (number)

      The value to increment or decrement by.

      \n
    6. \n
    \n

    返回值 (Array)

    \n

    Returns the new array of numbers.

    \n
    \n

    示例

    \n
    _.rangeRight(4);\n// => [3, 2, 1, 0]\n\n_.rangeRight(-4);\n// => [-3, -2, -1, 0]\n\n_.rangeRight(1, 5);\n// => [4, 3, 2, 1]\n\n_.rangeRight(0, 20, 5);\n// => [15, 10, 5, 0]\n\n_.rangeRight(0, -4, -1);\n// => [-3, -2, -1, 0]\n\n_.rangeRight(1, 4, 0);\n// => [1, 1, 1]\n\n_.rangeRight(0);\n// => []\n
    \n
    \n
    \n\n
    " } ,{ "href":"/runInContext", - "html":"

    runInContext source npm

    \n
    _.runInContext([context=root])
    \n\n

    Create a new pristine lodash function using the context object.

    \n
    \n\n

    参数

    \n
      \n
    1. [context=root] (Object)

      The context object.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns a new lodash function.

    \n
    \n

    示例

    \n
    _.mixin({ 'foo': _.constant('foo') });\n\nvar lodash = _.runInContext();\nlodash.mixin({ 'bar': lodash.constant('bar') });\n\n_.isFunction(_.foo);\n// => true\n_.isFunction(_.bar);\n// => false\n\nlodash.isFunction(lodash.foo);\n// => false\nlodash.isFunction(lodash.bar);\n// => true\n\n// using `context` to mock `Date#getTime` use in `_.now`\nvar mock = _.runInContext({\n  'Date': function() {\n    return { 'getTime': getTimeMock };\n  }\n});\n\n// or creating a suped-up `defer` in Node.js\nvar defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n
    \n
    \n
    \n\n
    " } + "html":"

    runInContext source npm

    \n
    _.runInContext([context=root])
    \n\n

    Create a new pristine lodash function 使用 context object.

    \n
    \n\n

    参数

    \n
      \n
    1. [context=root] (Object)

      The context object.

      \n
    2. \n
    \n

    返回值 (Function)

    \n

    Returns a new lodash function.

    \n
    \n

    示例

    \n
    _.mixin({ 'foo': _.constant('foo') });\n\nvar lodash = _.runInContext();\nlodash.mixin({ 'bar': lodash.constant('bar') });\n\n_.isFunction(_.foo);\n// => true\n_.isFunction(_.bar);\n// => false\n\nlodash.isFunction(lodash.foo);\n// => false\nlodash.isFunction(lodash.bar);\n// => true\n\n// using `context` to mock `Date#getTime` use in `_.now`\nvar mock = _.runInContext({\n  'Date': function() {\n    return { 'getTime': getTimeMock };\n  }\n});\n\n// or creating a suped-up `defer` in Node.js\nvar defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n
    \n
    \n
    \n\n
    " } ,{ "href":"/times", - "html":"

    times source npm

    \n
    _.times(n, [iteratee=_.identity])
    \n\n

    Invokes the iteratee function n times, returning an array of the results\nof each invocation. The iteratee is invoked with one argument; (index).

    \n
    \n\n

    参数

    \n
      \n
    1. n (number)

      The number of times to invoke iteratee.

      \n
    2. \n
    3. [iteratee=_.identity] (Function)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (Array)

    \n

    Returns the array of results.

    \n
    \n

    示例

    \n
    _.times(3, String);\n// => ['0', '1', '2']\n\n _.times(4, _.constant(true));\n// => [true, true, true, true]\n
    \n
    \n
    \n\n
    " } + "html":"

    times source npm

    \n
    _.times(n, [iteratee=_.identity])
    \n\n

    Invokes the iteratee function n times, returning an array of the results\nof each invocation. The iteratee is invoked with one argument; (index).

    \n
    \n\n

    参数

    \n
      \n
    1. n (number)

      The number of times to invoke iteratee.

      \n
    2. \n
    3. [iteratee=_.identity] (Function)

      这个函数会处理每一个元素

      \n
    4. \n
    \n

    返回值 (Array)

    \n

    Returns the array of results.

    \n
    \n

    示例

    \n
    _.times(3, String);\n// => ['0', '1', '2']\n\n _.times(4, _.constant(true));\n// => [true, true, true, true]\n
    \n
    \n
    \n\n
    " } ,{ "href":"/toPath", - "html":"

    toPath source npm

    \n
    _.toPath(value)
    \n\n

    Converts value to a property path array.

    \n
    \n\n

    参数

    \n
      \n
    1. value (*)

      The value to convert.

      \n
    2. \n
    \n

    返回值 (Array)

    \n

    Returns the new property path array.

    \n
    \n

    示例

    \n
    _.toPath('a.b.c');\n// => ['a', 'b', 'c']\n\n_.toPath('a[0].b.c');\n// => ['a', '0', 'b', 'c']\n\nvar path = ['a', 'b', 'c'],\n    newPath = _.toPath(path);\n\nconsole.log(newPath);\n// => ['a', 'b', 'c']\n\nconsole.log(path === newPath);\n// => false\n
    \n
    \n
    \n\n
    " } + "html":"

    toPath source npm

    \n
    _.toPath(value)
    \n\n

    Converts value to a property path array.

    \n
    \n\n

    参数

    \n
      \n
    1. value (*)

      The value to convert.

      \n
    2. \n
    \n

    返回值 (Array)

    \n

    Returns the new property path array.

    \n
    \n

    示例

    \n
    _.toPath('a.b.c');\n// => ['a', 'b', 'c']\n\n_.toPath('a[0].b.c');\n// => ['a', '0', 'b', 'c']\n\nvar path = ['a', 'b', 'c'],\n    newPath = _.toPath(path);\n\nconsole.log(newPath);\n// => ['a', 'b', 'c']\n\nconsole.log(path === newPath);\n// => false\n
    \n
    \n
    \n\n
    " } ,{ "href":"/uniqueId", - "html":"

    uniqueId source npm

    \n
    _.uniqueId([prefix])
    \n\n

    Generates a unique ID. If prefix is provided the ID is appended to it.

    \n
    \n\n

    参数

    \n
      \n
    1. [prefix] (string)

      The value to prefix the ID with.

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the unique ID.

    \n
    \n

    示例

    \n
    _.uniqueId('contact_');\n// => 'contact_104'\n\n_.uniqueId();\n// => '105'\n
    \n
    \n
    \n\n
    " } + "html":"

    uniqueId source npm

    \n
    _.uniqueId([prefix])
    \n\n

    Generates a unique ID. If prefix is provided the ID is appended to it.

    \n
    \n\n

    参数

    \n
      \n
    1. [prefix] (string)

      The value to prefix the ID with.

      \n
    2. \n
    \n

    返回值 (string)

    \n

    Returns the unique ID.

    \n
    \n

    示例

    \n
    _.uniqueId('contact_');\n// => 'contact_104'\n\n_.uniqueId();\n// => '105'\n
    \n
    \n
    \n\n
    " } ] \ No newline at end of file diff --git a/parseInt.html b/parseInt.html index 8c0b954..472258a 100644 --- a/parseInt.html +++ b/parseInt.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,27 +392,26 @@
    -

    parseInt source npm

    +

    parseInt source npm

    _.parseInt(string, [radix])
    -

    Converts string to an integer of the specified radix. If radix is -undefined or 0, a radix of 10 is used unless value is a hexadecimal, -in which case a radix of 16 is used. +

    以指定的基数转换字符串为整数。 +如果基数是 undefined 或者 0,则基数默认是10,如果字符串是16进制,则基数为16。

    -注意: This method aligns with the ES5 implementation -of parseInt.

    +注意: 这个方法与 ES5 implementation +的 parseInt 一致

    参数

    1. string (string)

      要转换的字符串

    2. -
    3. [radix] (number)

      The radix to interpret value by.

      +
    4. [radix] (number)

      基数

    返回值 (number)

    -

    Returns the converted integer.

    +

    返回转换后的整数

    示例

    _.parseInt('08');
    diff --git a/partial.html b/partial.html
    index ab0e2f3..b504929 100644
    --- a/partial.html
    +++ b/partial.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/partialRight.html b/partialRight.html index 38e1fec..3db4eb7 100644 --- a/partialRight.html +++ b/partialRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/partition.html b/partition.html index 84af40a..48697f8 100644 --- a/partition.html +++ b/partition.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/pick.html b/pick.html index 83ca326..b1d1f2c 100644 --- a/pick.html +++ b/pick.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/pickBy.html b/pickBy.html index edfc363..4c3d525 100644 --- a/pickBy.html +++ b/pickBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/property.html b/property.html index 8c2f476..30f784f 100644 --- a/property.html +++ b/property.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    property source npm

    +

    property source npm

    _.property(path)

    Creates a function that returns the value at path of a given object.

    diff --git a/propertyOf.html b/propertyOf.html index 059bbc7..b59496c 100644 --- a/propertyOf.html +++ b/propertyOf.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    propertyOf source npm

    +

    propertyOf source npm

    _.propertyOf(object)

    The opposite of _.property; this method creates a function that returns diff --git a/prototype-Symbol-iterator.html b/prototype-Symbol-iterator.html index 67185a8..1686231 100644 --- a/prototype-Symbol-iterator.html +++ b/prototype-Symbol-iterator.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/prototype-at.html b/prototype-at.html index b2d4896..ba269c5 100644 --- a/prototype-at.html +++ b/prototype-at.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/prototype-chain.html b/prototype-chain.html index 74ff829..594d761 100644 --- a/prototype-chain.html +++ b/prototype-chain.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/prototype-commit.html b/prototype-commit.html index 5eb94c4..03baa35 100644 --- a/prototype-commit.html +++ b/prototype-commit.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/prototype-next.html b/prototype-next.html index 484051e..6afe135 100644 --- a/prototype-next.html +++ b/prototype-next.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/prototype-plant.html b/prototype-plant.html index 8888544..29beace 100644 --- a/prototype-plant.html +++ b/prototype-plant.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/prototype-reverse.html b/prototype-reverse.html index 2db2c8b..02394e8 100644 --- a/prototype-reverse.html +++ b/prototype-reverse.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/prototype-value.html b/prototype-value.html index ab3c371..7693b97 100644 --- a/prototype-value.html +++ b/prototype-value.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/pull.html b/pull.html index 61225f4..ec437b6 100644 --- a/pull.html +++ b/pull.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/pullAll.html b/pullAll.html index 9509120..d42baae 100644 --- a/pullAll.html +++ b/pullAll.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/pullAllBy.html b/pullAllBy.html index c7e0110..f35a70b 100644 --- a/pullAllBy.html +++ b/pullAllBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/pullAt.html b/pullAt.html index 250c75c..6a23ba7 100644 --- a/pullAt.html +++ b/pullAt.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/random.html b/random.html index 82f5a34..6bb1ab0 100644 --- a/random.html +++ b/random.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/range.html b/range.html index fbc6573..7b9cf32 100644 --- a/range.html +++ b/range.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    range source npm

    +

    range source npm

    _.range([start=0], end, [step=1])

    Creates an array of numbers (positive and/or negative) progressing from diff --git a/rangeRight.html b/rangeRight.html index dcaf5e3..01f8466 100644 --- a/rangeRight.html +++ b/rangeRight.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    rangeRight source npm

    +

    rangeRight source npm

    _.rangeRight([start=0], end, [step=1])

    这个方法类似 _.range except that it populates values in diff --git a/rearg.html b/rearg.html index 65fcf59..d598111 100644 --- a/rearg.html +++ b/rearg.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/reduce.html b/reduce.html index c3401ba..8c42f4d 100644 --- a/reduce.html +++ b/reduce.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/reduceRight.html b/reduceRight.html index ddd441a..3ae8b39 100644 --- a/reduceRight.html +++ b/reduceRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/reject.html b/reject.html index b893c96..6943775 100644 --- a/reject.html +++ b/reject.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/remove.html b/remove.html index 4c87982..fe3c545 100644 --- a/remove.html +++ b/remove.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/repeat.html b/repeat.html index f90baf7..f0cef2c 100644 --- a/repeat.html +++ b/repeat.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,21 +392,21 @@
    -

    repeat source npm

    +

    repeat source npm

    _.repeat([string=''], [n=0])
    -

    Repeats the given string n times.

    +

    重复 N 次字符串

    参数

      -
    1. [string=''] (string)

      The string to repeat.

      +
    2. [string=''] (string)

      要重复的字符串

    3. -
    4. [n=0] (number)

      The number of times to repeat the string.

      +
    5. [n=0] (number)

      重复的次数

    返回值 (string)

    -

    Returns the repeated string.

    +

    返回重复的字符串

    示例

    _.repeat('*', 3);
    diff --git a/replace.html b/replace.html
    index 9494a7c..1089b88 100644
    --- a/replace.html
    +++ b/replace.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,26 +392,25 @@
    -

    replace source npm

    -
    _.replace([string=''], pattern, replacement)
    +

    replace source npm

    +
    _.replace([string=''], pattern, 要替换的内容)
    -

    Replaces matches for pattern in string with replacement. +

    替换字符串中匹配的内容为给定的内容

    -注意: This method is based on String#replace.

    +注意: 这个方法基于 String#replace

    参数

      -
    1. [string=''] (string)

      The string to modify.

      +
    2. [string=''] (string)

      待替换的字符串

    3. -
    4. pattern (RegExp|string)

      The pattern to replace.

      -
    5. -
    6. replacement (Function|string)

      The match replacement.

      +
    7. pattern (RegExp|string)

      要匹配的内容

    8. +
    9. 要替换的内容 (Function|string)
       

    返回值 (string)

    -

    Returns the modified string.

    +

    返回替换完成的字符串

    示例

    _.replace('Hi Fred', 'Fred', 'Barney');
    diff --git a/rest.html b/rest.html
    index 03c31af..17eb7a9 100644
    --- a/rest.html
    +++ b/rest.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/result.html b/result.html index 47dbb7f..2dbc546 100644 --- a/result.html +++ b/result.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/round.html b/round.html index 7a671c4..ac299f4 100644 --- a/round.html +++ b/round.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    round source npm

    +

    round source npm

    _.round(number, [precision=0])

    根据 precision 四舍五入 number。

    diff --git a/runInContext.html b/runInContext.html index 89f7e8d..9ea849f 100644 --- a/runInContext.html +++ b/runInContext.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -395,7 +395,7 @@

    runInContext source npm

    _.runInContext([context=root])
    -

    Create a new pristine lodash function using the context object.

    +

    Create a new pristine lodash function 使用 context object.

    参数

    diff --git a/sample.html b/sample.html index 9113b62..dd33d44 100644 --- a/sample.html +++ b/sample.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sampleSize.html b/sampleSize.html index 205249c..4742e21 100644 --- a/sampleSize.html +++ b/sampleSize.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/set.html b/set.html index 46773c0..5e3daa2 100644 --- a/set.html +++ b/set.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/setWith.html b/setWith.html index d43108b..50b4ed3 100644 --- a/setWith.html +++ b/setWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/shuffle.html b/shuffle.html index 0e71bac..8346d68 100644 --- a/shuffle.html +++ b/shuffle.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/size.html b/size.html index edf6f43..4b87a7d 100644 --- a/size.html +++ b/size.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/slice.html b/slice.html index 0f6b872..e4c5aaf 100644 --- a/slice.html +++ b/slice.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/snakeCase.html b/snakeCase.html index 14b12cb..c92fda6 100644 --- a/snakeCase.html +++ b/snakeCase.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,10 +392,10 @@
    -

    snakeCase source npm

    +

    snakeCase source npm

    _.snakeCase([string=''])
    -

    Converts string to snake case.

    +

    转换字符串为 snake case

    参数

    @@ -404,7 +404,7 @@

    参数

    返回值 (string)

    -

    Returns the snake cased string.

    +

    返回转换后的字符串

    示例

    _.snakeCase('Foo Bar');
    diff --git a/some.html b/some.html
    index 774c607..a3e91fd 100644
    --- a/some.html
    +++ b/some.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortBy.html b/sortBy.html index a0a878a..ab43ce0 100644 --- a/sortBy.html +++ b/sortBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedIndex.html b/sortedIndex.html index e12dc46..79c08c8 100644 --- a/sortedIndex.html +++ b/sortedIndex.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedIndexBy.html b/sortedIndexBy.html index 0710de1..7e74f34 100644 --- a/sortedIndexBy.html +++ b/sortedIndexBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedIndexOf.html b/sortedIndexOf.html index 6719f4d..79497cf 100644 --- a/sortedIndexOf.html +++ b/sortedIndexOf.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedLastIndex.html b/sortedLastIndex.html index 7077a22..f09db4d 100644 --- a/sortedLastIndex.html +++ b/sortedLastIndex.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedLastIndexBy.html b/sortedLastIndexBy.html index 62102c1..c7bdfbc 100644 --- a/sortedLastIndexBy.html +++ b/sortedLastIndexBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedLastIndexOf.html b/sortedLastIndexOf.html index 43b129a..0b905c1 100644 --- a/sortedLastIndexOf.html +++ b/sortedLastIndexOf.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedUniq.html b/sortedUniq.html index 3cbcf4b..658e8f9 100644 --- a/sortedUniq.html +++ b/sortedUniq.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/sortedUniqBy.html b/sortedUniqBy.html index 1703a93..17c6c4c 100644 --- a/sortedUniqBy.html +++ b/sortedUniqBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/split.html b/split.html index 2e9a35c..07bb580 100644 --- a/split.html +++ b/split.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,26 +392,26 @@
    -

    split source npm

    -
    _.split([string=''], separator, [limit])
    +

    split source npm

    +
    _.split([string=''], [separator], [limit])
    -

    Splits string by separator. +

    separator 拆分字符串

    -注意: This method is based on String#split.

    +注意: 这个方法基于 String#split

    参数

      -
    1. [string=''] (string)

      The string to split.

      +
    2. [string=''] (string)

      要拆分的字符串

    3. -
    4. separator (RegExp|string)

      The separator pattern to split by.

      +
    5. [separator] (RegExp|string)

      拆分的分隔符

    6. -
    7. [limit] (number)

      The length to truncate results to.

      +
    8. [limit] (number)

      限制的数量

    返回值 (Array)

    -

    Returns the new array of string segments.

    +

    返回拆分部分的字符串的数组

    示例

    _.split('a-b-c', '-', 2);
    diff --git a/spread.html b/spread.html
    index 55fa473..6ed9a07 100644
    --- a/spread.html
    +++ b/spread.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/startCase.html b/startCase.html index d45af54..2a9ef27 100644 --- a/startCase.html +++ b/startCase.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,10 +392,10 @@
    -

    startCase source npm

    +

    startCase source npm

    _.startCase([string=''])
    -

    Converts string to start case.

    +

    转换字符串为 start case

    参数

    @@ -404,7 +404,7 @@

    参数

    返回值 (string)

    -

    Returns the start cased string.

    +

    返回转换后的字符串

    示例

    _.startCase('--foo-bar');
    diff --git a/startsWith.html b/startsWith.html
    index 59d06e9..7cff23e 100644
    --- a/startsWith.html
    +++ b/startsWith.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,23 +392,23 @@
    -

    startsWith source npm

    +

    startsWith source npm

    _.startsWith([string=''], [target], [position=0])
    -

    Checks if string starts with the given target string.

    +

    检查字符串是否以 target 开头。

    参数

    1. [string=''] (string)

      要检索的字符串

    2. -
    3. [target] (string)

      The string to search for.

      +
    4. [target] (string)

      要检查的字符串

    5. [position=0] (number)

      检索的位置

    返回值 (boolean)

    -

    Returns true if string starts with target否则返回 false

    +

    如果符合条件返回true,否则返回 false

    示例

    _.startsWith('abc', 'a');
    diff --git a/stringSize.html b/stringSize.html
    index b8eb1b2..6958d07 100644
    --- a/stringSize.html
    +++ b/stringSize.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/subtract.html b/subtract.html index 3b11b11..1adbc61 100644 --- a/subtract.html +++ b/subtract.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    subtract source npm

    +

    subtract source npm

    _.subtract(minuend, subtrahend)

    两双相减

    diff --git a/sum.html b/sum.html index 97d8ffd..ead61cc 100644 --- a/sum.html +++ b/sum.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    sum source npm

    +

    sum source npm

    _.sum(array)

    计算 array 中值的总和

    diff --git a/sumBy.html b/sumBy.html index 68393e1..3952d3f 100644 --- a/sumBy.html +++ b/sumBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    sumBy source npm

    +

    sumBy source npm

    _.sumBy(array, [iteratee=_.identity])

    这个方法类似 _.sum。 diff --git a/tail.html b/tail.html index ec1d229..7249be7 100644 --- a/tail.html +++ b/tail.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/take.html b/take.html index 51c87d5..1000744 100644 --- a/take.html +++ b/take.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/takeRight.html b/takeRight.html index ce2c706..8903f61 100644 --- a/takeRight.html +++ b/takeRight.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/takeRightWhile.html b/takeRightWhile.html index c572040..fbdb240 100644 --- a/takeRightWhile.html +++ b/takeRightWhile.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/takeWhile.html b/takeWhile.html index 6933cb3..f4d4775 100644 --- a/takeWhile.html +++ b/takeWhile.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/tap.html b/tap.html index d428e5c..a1bc3c2 100644 --- a/tap.html +++ b/tap.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/template.html b/template.html index c861630..978af77 100644 --- a/template.html +++ b/template.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,100 +392,100 @@
    -

    template source npm

    +

    template source npm

    _.template([string=''], [options])
    -

    Creates a compiled template function that can interpolate data properties -in "interpolate" delimiters, HTML-escape interpolated data properties in -"escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data -properties may be accessed as free variables in the template. If a setting -object is provided it takes precedence over _.templateSettings values. +

    创建一个预编译模板方法,可以插入数据到模板中 "interpolate" 分隔符相应的位置。 +HTML会在 "escape" 分隔符中转换为相应实体。 +在 "evaluate" 分隔符中允许执行JavaScript代码。 +在模板中可以自由访问变量。 +如果设置了选项对象,则会优先覆盖 _.templateSettings 的值。

    -注意: In the development build _.template utilizes +注意: 在开发过程中可以使用 sourceURLs -for easier debugging. +便于调试。

    -For more information on precompiling templates see -lodash's custom builds documentation. +了解更多预编译模板的信息查看 +lodash的自定义构建文档

    -For more information on Chrome extension sandboxes see -Chrome's extensions documentation.

    +了解更多 Chrome 沙箱扩展的信息查看 +Chrome的扩展文档

    参数

      -
    1. [string=''] (string)

      The template string.

      +
    2. [string=''] (string)

      模板字符串

    3. -
    4. [options] (Object)

      The options object.

      +
    5. [options] (Object)

      选项对象

    6. -
    7. [options.escape] (RegExp)

      The HTML "escape" delimiter.

      +
    8. [options.escape] (RegExp)

      "escape" 分隔符

    9. -
    10. [options.evaluate] (RegExp)

      The "evaluate" delimiter.

      +
    11. [options.evaluate] (RegExp)

      "evaluate" 分隔符

    12. -
    13. [options.imports] (Object)

      An object to import into the template as free variables.

      +
    14. [options.imports] (Object)

      导入对象到模板中作为自由变量

    15. -
    16. [options.interpolate] (RegExp)

      The "interpolate" delimiter.

      +
    17. [options.interpolate] (RegExp)

      "interpolate" 分隔符

    18. -
    19. [options.sourceURL] (string)

      The sourceURL of the template's compiled source.

      +
    20. [options.sourceURL] (string)

      模板编译的来源URL

    21. -
    22. [options.variable] (string)

      The data object variable name.

      +
    23. [options.variable] (string)

      数据对象的变量名

    返回值 (Function)

    -

    Returns the compiled template function.

    +

    返回编译模板函数

    示例

    -
    // using the "interpolate" delimiter to create a compiled template
    +    
    // 使用 "interpolate" 分隔符创建编译模板
     var compiled = _.template('hello <%= user %>!');
     compiled({ 'user': 'fred' });
     // => 'hello fred!'
     
    -// using the HTML "escape" delimiter to escape data property values
    +// 使用 HTML "escape" 转义数据的值
     var compiled = _.template('<b><%- value %></b>');
     compiled({ 'value': '<script>' });
     // => '<b>&lt;script&gt;</b>'
     
    -// using the "evaluate" delimiter to execute JavaScript and generate HTML
    +// 使用 "evaluate" 分隔符执行 JavaScript 和 生成HTML代码
     var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     compiled({ 'users': ['fred', 'barney'] });
     // => '<li>fred</li><li>barney</li>'
     
    -// using the internal `print` function in "evaluate" delimiters
    +// 在 "evaluate" 分隔符中使用内部的 `print` 函数
     var compiled = _.template('<% print("hello " + user); %>!');
     compiled({ 'user': 'barney' });
     // => 'hello barney!'
     
    -// using the ES delimiter as an alternative to the default "interpolate" delimiter
    +// 使用 ES 分隔符代替默认的 "interpolate" 分隔符
     var compiled = _.template('hello ${ user }!');
     compiled({ 'user': 'pebbles' });
     // => 'hello pebbles!'
     
    -// using custom template delimiters
    +// 使用自定义的模板分隔符
     _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     var compiled = _.template('hello {{ user }}!');
     compiled({ 'user': 'mustache' });
     // => 'hello mustache!'
     
    -// using backslashes to treat delimiters as plain text
    +// 使用反斜杠符号作为纯文本处理
     var compiled = _.template('<%= "\\<%- value %\\>" %>');
     compiled({ 'value': 'ignored' });
     // => '<%- value %>'
     
    -// using the `imports` option to import `jQuery` as `jq`
    +// 使用 `imports` 选项导入 `jq` 作为 `jQuery` 的别名
     var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     compiled({ 'users': ['fred', 'barney'] });
     // => '<li>fred</li><li>barney</li>'
     
    -// using the `sourceURL` option to specify a custom sourceURL for the template
    +// 使用 `sourceURL` 选项指定模板的来源URL
     var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     compiled(data);
    -// => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
    +// => 在开发工具的 Sources 选项卡 或 Resources 面板中找到 "greeting.jst"
     
    -// using the `variable` option to ensure a with-statement isn't used in the compiled template
    +// 使用 `variable` 选项确保在编译模板中不声明变量
     var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     compiled.source;
     // => function(data) {
    @@ -494,8 +494,8 @@ 

    示例

    // return __p; // } -// using the `source` property to inline compiled templates for meaningful -// line numbers in error messages and a stack trace +// 使用 `source` 特性内联编译模板 +// 便以查看行号、错误信息、堆栈 fs.writeFileSync(path.join(cwd, 'jst.js'), '\ var JST = {\ "main": ' + _.template(mainText).source + '\ diff --git a/templateSettings-escape.html b/templateSettings-escape.html index deb7d3f..b43f3a5 100644 --- a/templateSettings-escape.html +++ b/templateSettings-escape.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/templateSettings-evaluate.html b/templateSettings-evaluate.html index 298630f..5341c5f 100644 --- a/templateSettings-evaluate.html +++ b/templateSettings-evaluate.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/templateSettings-imports-_.html b/templateSettings-imports-_.html index 2084100..c254c1f 100644 --- a/templateSettings-imports-_.html +++ b/templateSettings-imports-_.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/templateSettings-imports.html b/templateSettings-imports.html index c0fc3f8..2ed069f 100644 --- a/templateSettings-imports.html +++ b/templateSettings-imports.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/templateSettings-interpolate.html b/templateSettings-interpolate.html index f048d6d..1aa2351 100644 --- a/templateSettings-interpolate.html +++ b/templateSettings-interpolate.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/templateSettings-variable.html b/templateSettings-variable.html index 6f723ce..ecdc582 100644 --- a/templateSettings-variable.html +++ b/templateSettings-variable.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/templateSettings.html b/templateSettings.html index 9069f8b..c60a6e9 100644 --- a/templateSettings.html +++ b/templateSettings.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/throttle.html b/throttle.html index f0125e0..33c02b4 100644 --- a/throttle.html +++ b/throttle.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/thru.html b/thru.html index e6f3c1b..f530e7e 100644 --- a/thru.html +++ b/thru.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/times.html b/times.html index 9d2a7cb..734fe8c 100644 --- a/times.html +++ b/times.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    times source npm

    +

    times source npm

    _.times(n, [iteratee=_.identity])

    Invokes the iteratee function n times, returning an array of the results diff --git a/toArray.html b/toArray.html index 3dbcbfb..03b0369 100644 --- a/toArray.html +++ b/toArray.html @@ -337,9 +337,9 @@

  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toInteger.html b/toInteger.html index ab5cc66..af0cf21 100644 --- a/toInteger.html +++ b/toInteger.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toLength.html b/toLength.html index 164bad2..a7986e9 100644 --- a/toLength.html +++ b/toLength.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toLower.html b/toLower.html index 4037b55..ed3face 100644 --- a/toLower.html +++ b/toLower.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,10 +392,10 @@
    -

    toLower source npm

    +

    toLower source npm

    _.toLower([string=''])
    -

    Converts string, as a whole, to lower case.

    +

    转换整体的字符串为小写

    参数

    @@ -404,7 +404,7 @@

    参数

    返回值 (string)

    -

    Returns the lower cased string.

    +

    返回小写的字符串

    示例

    _.toLower('--Foo-Bar');
    diff --git a/toNumber.html b/toNumber.html
    index eeed616..51edd3b 100644
    --- a/toNumber.html
    +++ b/toNumber.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toPairs.html b/toPairs.html index 7fa06e7..ca30fea 100644 --- a/toPairs.html +++ b/toPairs.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toPairsIn.html b/toPairsIn.html index e1abc61..33fa4e4 100644 --- a/toPairsIn.html +++ b/toPairsIn.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toPath.html b/toPath.html index 5c3bd68..dce5ec1 100644 --- a/toPath.html +++ b/toPath.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    toPath source npm

    +

    toPath source npm

    _.toPath(value)

    Converts value to a property path array.

    diff --git a/toPlainObject.html b/toPlainObject.html index a4782fb..c94f2bc 100644 --- a/toPlainObject.html +++ b/toPlainObject.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toSafeInteger.html b/toSafeInteger.html index 0a09347..c54894e 100644 --- a/toSafeInteger.html +++ b/toSafeInteger.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toString.html b/toString.html index 8cc76c7..8f0bc48 100644 --- a/toString.html +++ b/toString.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/toUpper.html b/toUpper.html index 5fb698b..c9c7a5d 100644 --- a/toUpper.html +++ b/toUpper.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,10 +392,10 @@
    -

    toUpper source npm

    +

    toUpper source npm

    _.toUpper([string=''])
    -

    Converts string, as a whole, to upper case.

    +

    转换整体的字符串为大写

    参数

    @@ -404,7 +404,7 @@

    参数

    返回值 (string)

    -

    Returns the upper cased string.

    +

    返回大写的字符串

    示例

    _.toUpper('--foo-bar');
    diff --git a/transform.html b/transform.html
    index 10ff268..b1a4555 100644
    --- a/transform.html
    +++ b/transform.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/trim.html b/trim.html index ad863ea..bbacb35 100644 --- a/trim.html +++ b/trim.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,21 +392,21 @@
    -

    trim source npm

    +

    trim source npm

    _.trim([string=''], [chars=whitespace])
    -

    Removes leading and trailing whitespace or specified characters from string.

    +

    从字符串中移除前面和后面的空白 或 指定的字符。

    参数

      -
    1. [string=''] (string)

      The string to trim.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [chars=whitespace] (string)

      The characters to trim.

      +
    5. [chars=whitespace] (string)

      要处理的字符

    返回值 (string)

    -

    Returns the trimmed string.

    +

    返回处理后的字符串

    示例

    _.trim('  abc  ');
    diff --git a/trimEnd.html b/trimEnd.html
    index 19c34ea..a899aaf 100644
    --- a/trimEnd.html
    +++ b/trimEnd.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,21 +392,21 @@
    -

    trimEnd source npm

    +

    trimEnd source npm

    _.trimEnd([string=''], [chars=whitespace])
    -

    Removes trailing whitespace or specified characters from string.

    +

    移除字符串后面的空白 或 指定的字符。

    参数

      -
    1. [string=''] (string)

      The string to trim.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [chars=whitespace] (string)

      The characters to trim.

      +
    5. [chars=whitespace] (string)

      要处理的字符

    返回值 (string)

    -

    Returns the trimmed string.

    +

    返回处理后的字符串

    示例

    _.trimEnd('  abc  ');
    diff --git a/trimStart.html b/trimStart.html
    index 81275ae..c517b20 100644
    --- a/trimStart.html
    +++ b/trimStart.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,21 +392,21 @@
    -

    trimStart source npm

    +

    trimStart source npm

    _.trimStart([string=''], [chars=whitespace])
    -

    Removes leading whitespace or specified characters from string.

    +

    移除字符串中前面的空白 或 指定的字符。

    参数

      -
    1. [string=''] (string)

      The string to trim.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [chars=whitespace] (string)

      The characters to trim.

      +
    5. [chars=whitespace] (string)

      要处理的字符

    返回值 (string)

    -

    Returns the trimmed string.

    +

    返回处理后的字符串

    示例

    _.trimStart('  abc  ');
    diff --git a/truncate.html b/truncate.html
    index 374c69c..8caa6cb 100644
    --- a/truncate.html
    +++ b/truncate.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,29 +392,28 @@
    -

    truncate source npm

    +

    truncate source npm

    _.truncate([string=''], [options])
    -

    Truncates string if it's longer than the given maximum string length. -The last characters of the truncated string are replaced with the omission -string which defaults to "...".

    +

    截断字符串,如果字符串超出了限定的最大值。 +被截断的字符串后面会以 omission 代替,omission 默认是 "..."。

    参数

      -
    1. [string=''] (string)

      The string to truncate.

      +
    2. [string=''] (string)

      要截断的字符串

    3. -
    4. [options] (Object)

      The options object.

      +
    5. [options] (Object)

      选项对象

    6. -
    7. [options.length=30] (number)

      The maximum string length.

      +
    8. [options.length=30] (number)

      允许的最大长度

    9. -
    10. [options.omission='...'] (string)

      The string to indicate text is omitted.

      +
    11. [options.omission='...'] (string)

      超出后的代替字符

    12. -
    13. [options.separator] (RegExp|string)

      The separator pattern to truncate to.

      +
    14. [options.separator] (RegExp|string)

      截断点

    返回值 (string)

    -

    Returns the truncated string.

    +

    返回截断后的字符串

    示例

    _.truncate('hi-diddly-ho there, neighborino');
    diff --git a/unary.html b/unary.html
    index e9f7298..52c6dd4 100644
    --- a/unary.html
    +++ b/unary.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/unescape.html b/unescape.html index 69e7d0d..162e917 100644 --- a/unescape.html +++ b/unescape.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,25 +392,24 @@
    -

    unescape source npm

    +

    unescape source npm

    _.unescape([string=''])
    -

    The inverse of _.escape; this method converts the HTML entities -&amp;, &lt;, &gt;, &quot;, &#39;, and &#96; in string to their -corresponding characters. +

    反向版 _.escape。 +这个方法转换 HTML 实体 +&amp;, &lt;, &gt;, &quot;, &#39;, 以及 &#96; 为对应的字符。

    -注意: No other HTML entities are unescaped. To unescape additional HTML -entities use a third-party library like he.

    +注意: 不会转换其他的 HTML 实体,需要转换可以使用类似 he 的第三方库。

    参数

      -
    1. [string=''] (string)

      The string to unescape.

      +
    2. [string=''] (string)

      要转换的字符串

    返回值 (string)

    -

    Returns the unescaped string.

    +

    返回转换后的字符串

    示例

    _.unescape('fred, barney, &amp; pebbles');
    diff --git a/union.html b/union.html
    index 7fdff0f..08160f7 100644
    --- a/union.html
    +++ b/union.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/unionBy.html b/unionBy.html index 9928885..1ead49f 100644 --- a/unionBy.html +++ b/unionBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/unionWith.html b/unionWith.html index b0e9190..7ed079f 100644 --- a/unionWith.html +++ b/unionWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/uniq.html b/uniq.html index 9cffe90..1a296ae 100644 --- a/uniq.html +++ b/uniq.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/uniqBy.html b/uniqBy.html index 1e37cb3..9bac57a 100644 --- a/uniqBy.html +++ b/uniqBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/uniqWith.html b/uniqWith.html index 8182c06..c372e12 100644 --- a/uniqWith.html +++ b/uniqWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/uniqueId.html b/uniqueId.html index 5de8a52..bf861af 100644 --- a/uniqueId.html +++ b/uniqueId.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,7 +392,7 @@
    -

    uniqueId source npm

    +

    uniqueId source npm

    _.uniqueId([prefix])

    Generates a unique ID. If prefix is provided the ID is appended to it.

    diff --git a/unset.html b/unset.html index 717581d..372043e 100644 --- a/unset.html +++ b/unset.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/unzip.html b/unzip.html index b10c9de..7b6d036 100644 --- a/unzip.html +++ b/unzip.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/unzipWith.html b/unzipWith.html index 5626420..e092d26 100644 --- a/unzipWith.html +++ b/unzipWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/upperCase.html b/upperCase.html index 88b196d..db8d776 100644 --- a/upperCase.html +++ b/upperCase.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,10 +392,10 @@
    -

    upperCase source npm

    +

    upperCase source npm

    _.upperCase([string=''])
    -

    Converts string, as space separated words, to upper case.

    +

    转换字符串为空格分割的大写单词

    参数

    @@ -404,7 +404,7 @@

    参数

    返回值 (string)

    -

    Returns the upper cased string.

    +

    返回大写单词

    示例

    _.upperCase('--foo-bar');
    diff --git a/upperFirst.html b/upperFirst.html
    index cb698eb..e06e32e 100644
    --- a/upperFirst.html
    +++ b/upperFirst.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/values.html b/values.html index 54c535d..da7a345 100644 --- a/values.html +++ b/values.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/valuesIn.html b/valuesIn.html index 27b0b00..f9fd216 100644 --- a/valuesIn.html +++ b/valuesIn.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/without.html b/without.html index c3d4b53..af3d096 100644 --- a/without.html +++ b/without.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/words.html b/words.html index 8579957..99d4282 100644 --- a/words.html +++ b/words.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • @@ -392,21 +392,21 @@
    -

    words source npm

    +

    words source npm

    _.words([string=''], [pattern])
    -

    Splits string into an array of its words.

    +

    拆分字符串中的词为数组

    参数

      -
    1. [string=''] (string)

      The string to inspect.

      +
    2. [string=''] (string)

      要处理的字符串

    3. -
    4. [pattern] (RegExp|string)

      The pattern to match words.

      +
    5. [pattern] (RegExp|string)

      匹配模式

    返回值 (Array)

    -

    Returns the words of string.

    +

    然后拆分后的数组

    示例

    _.words('fred, barney, & pebbles');
    diff --git a/wrap.html b/wrap.html
    index 40e375e..6d43295 100644
    --- a/wrap.html
    +++ b/wrap.html
    @@ -337,9 +337,9 @@
     
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/wrapperFlatMap.html b/wrapperFlatMap.html index 88ab552..37b0ade 100644 --- a/wrapperFlatMap.html +++ b/wrapperFlatMap.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/xor.html b/xor.html index 9f82625..a912b91 100644 --- a/xor.html +++ b/xor.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/xorBy.html b/xorBy.html index 4ef9021..65219da 100644 --- a/xorBy.html +++ b/xorBy.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/xorWith.html b/xorWith.html index 3958883..0d1cb1e 100644 --- a/xorWith.html +++ b/xorWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/zip.html b/zip.html index 038d270..b5b0881 100644 --- a/zip.html +++ b/zip.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/zipObject.html b/zipObject.html index d753ef5..64f10d1 100644 --- a/zipObject.html +++ b/zipObject.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template
  • diff --git a/zipWith.html b/zipWith.html index 71dcc98..b97bcbf 100644 --- a/zipWith.html +++ b/zipWith.html @@ -337,9 +337,9 @@
  • padStart
  • parseInt
  • repeat
  • -
  • replace
  • +
  • replace
  • snakeCase
  • -
  • split
  • +
  • split
  • startCase
  • startsWith
  • template