mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Cleanup _.template comments.
Former-commit-id: cff1c86d3a7e9c5ee32e00762ce522690726ef09
This commit is contained in:
7
dist/lodash.compat.js
vendored
7
dist/lodash.compat.js
vendored
@@ -4684,7 +4684,7 @@
|
|||||||
interpolate = options.interpolate || reNoMatch,
|
interpolate = options.interpolate || reNoMatch,
|
||||||
source = "__p += '";
|
source = "__p += '";
|
||||||
|
|
||||||
// compile regexp to match each delimiter
|
// compile the regexp to match each delimiter
|
||||||
var reDelimiters = RegExp(
|
var reDelimiters = RegExp(
|
||||||
(options.escape || reNoMatch).source + '|' +
|
(options.escape || reNoMatch).source + '|' +
|
||||||
interpolate.source + '|' +
|
interpolate.source + '|' +
|
||||||
@@ -4718,9 +4718,8 @@
|
|||||||
|
|
||||||
source += "';\n";
|
source += "';\n";
|
||||||
|
|
||||||
// if `variable` is not specified and the template contains "evaluate"
|
// if `variable` is not specified, wrap a with-statement around the generated
|
||||||
// delimiters, wrap a with-statement around the generated code to add the
|
// code to add the data object to the top of the scope chain
|
||||||
// data object to the top of the scope chain
|
|
||||||
var variable = options.variable,
|
var variable = options.variable,
|
||||||
hasVariable = variable;
|
hasVariable = variable;
|
||||||
|
|
||||||
|
|||||||
7
dist/lodash.js
vendored
7
dist/lodash.js
vendored
@@ -4534,7 +4534,7 @@
|
|||||||
interpolate = options.interpolate || reNoMatch,
|
interpolate = options.interpolate || reNoMatch,
|
||||||
source = "__p += '";
|
source = "__p += '";
|
||||||
|
|
||||||
// compile regexp to match each delimiter
|
// compile the regexp to match each delimiter
|
||||||
var reDelimiters = RegExp(
|
var reDelimiters = RegExp(
|
||||||
(options.escape || reNoMatch).source + '|' +
|
(options.escape || reNoMatch).source + '|' +
|
||||||
interpolate.source + '|' +
|
interpolate.source + '|' +
|
||||||
@@ -4568,9 +4568,8 @@
|
|||||||
|
|
||||||
source += "';\n";
|
source += "';\n";
|
||||||
|
|
||||||
// if `variable` is not specified and the template contains "evaluate"
|
// if `variable` is not specified, wrap a with-statement around the generated
|
||||||
// delimiters, wrap a with-statement around the generated code to add the
|
// code to add the data object to the top of the scope chain
|
||||||
// data object to the top of the scope chain
|
|
||||||
var variable = options.variable,
|
var variable = options.variable,
|
||||||
hasVariable = variable;
|
hasVariable = variable;
|
||||||
|
|
||||||
|
|||||||
@@ -861,7 +861,7 @@ The wrapper functions `first` and `last` return wrapped values when `n` is passe
|
|||||||
<!-- div -->
|
<!-- div -->
|
||||||
|
|
||||||
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
|
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
|
||||||
<a href="#_tapvalue-interceptor">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4874 "View in source") [Ⓣ][1]
|
<a href="#_tapvalue-interceptor">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4873 "View in source") [Ⓣ][1]
|
||||||
|
|
||||||
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.
|
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.
|
||||||
|
|
||||||
@@ -891,7 +891,7 @@ _([1, 2, 3, 4])
|
|||||||
<!-- div -->
|
<!-- div -->
|
||||||
|
|
||||||
### <a id="_prototypetostring"></a>`_.prototype.toString()`
|
### <a id="_prototypetostring"></a>`_.prototype.toString()`
|
||||||
<a href="#_prototypetostring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4891 "View in source") [Ⓣ][1]
|
<a href="#_prototypetostring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4890 "View in source") [Ⓣ][1]
|
||||||
|
|
||||||
Produces the `toString` result of the wrapped value.
|
Produces the `toString` result of the wrapped value.
|
||||||
|
|
||||||
@@ -912,7 +912,7 @@ _([1, 2, 3]).toString();
|
|||||||
<!-- div -->
|
<!-- div -->
|
||||||
|
|
||||||
### <a id="_prototypevalueof"></a>`_.prototype.valueOf()`
|
### <a id="_prototypevalueof"></a>`_.prototype.valueOf()`
|
||||||
<a href="#_prototypevalueof">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4908 "View in source") [Ⓣ][1]
|
<a href="#_prototypevalueof">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4907 "View in source") [Ⓣ][1]
|
||||||
|
|
||||||
Extracts the wrapped value.
|
Extracts the wrapped value.
|
||||||
|
|
||||||
@@ -3391,7 +3391,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
|
|||||||
<!-- div -->
|
<!-- div -->
|
||||||
|
|
||||||
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])`
|
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])`
|
||||||
<a href="#_timesn-callback--thisarg">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4800 "View in source") [Ⓣ][1]
|
<a href="#_timesn-callback--thisarg">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4799 "View in source") [Ⓣ][1]
|
||||||
|
|
||||||
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
|
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
|
||||||
|
|
||||||
@@ -3423,7 +3423,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
|
|||||||
<!-- div -->
|
<!-- div -->
|
||||||
|
|
||||||
### <a id="_unescapestring"></a>`_.unescape(string)`
|
### <a id="_unescapestring"></a>`_.unescape(string)`
|
||||||
<a href="#_unescapestring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4826 "View in source") [Ⓣ][1]
|
<a href="#_unescapestring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4825 "View in source") [Ⓣ][1]
|
||||||
|
|
||||||
The opposite of `_.escape`, this method converts the HTML entities `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding characters.
|
The opposite of `_.escape`, this method converts the HTML entities `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding characters.
|
||||||
|
|
||||||
@@ -3447,7 +3447,7 @@ _.unescape('Moe, Larry & Curly');
|
|||||||
<!-- div -->
|
<!-- div -->
|
||||||
|
|
||||||
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
|
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
|
||||||
<a href="#_uniqueidprefix">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4846 "View in source") [Ⓣ][1]
|
<a href="#_uniqueidprefix">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4845 "View in source") [Ⓣ][1]
|
||||||
|
|
||||||
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
|
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
|
||||||
|
|
||||||
@@ -3500,7 +3500,7 @@ A reference to the `lodash` function.
|
|||||||
<!-- div -->
|
<!-- div -->
|
||||||
|
|
||||||
### <a id="_version"></a>`_.VERSION`
|
### <a id="_version"></a>`_.VERSION`
|
||||||
<a href="#_version">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5076 "View in source") [Ⓣ][1]
|
<a href="#_version">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5075 "View in source") [Ⓣ][1]
|
||||||
|
|
||||||
*(String)*: The semantic version number.
|
*(String)*: The semantic version number.
|
||||||
|
|
||||||
|
|||||||
@@ -4691,7 +4691,7 @@
|
|||||||
interpolate = options.interpolate || reNoMatch,
|
interpolate = options.interpolate || reNoMatch,
|
||||||
source = "__p += '";
|
source = "__p += '";
|
||||||
|
|
||||||
// compile regexp to match each delimiter
|
// compile the regexp to match each delimiter
|
||||||
var reDelimiters = RegExp(
|
var reDelimiters = RegExp(
|
||||||
(options.escape || reNoMatch).source + '|' +
|
(options.escape || reNoMatch).source + '|' +
|
||||||
interpolate.source + '|' +
|
interpolate.source + '|' +
|
||||||
@@ -4725,9 +4725,8 @@
|
|||||||
|
|
||||||
source += "';\n";
|
source += "';\n";
|
||||||
|
|
||||||
// if `variable` is not specified and the template contains "evaluate"
|
// if `variable` is not specified, wrap a with-statement around the generated
|
||||||
// delimiters, wrap a with-statement around the generated code to add the
|
// code to add the data object to the top of the scope chain
|
||||||
// data object to the top of the scope chain
|
|
||||||
var variable = options.variable,
|
var variable = options.variable,
|
||||||
hasVariable = variable;
|
hasVariable = variable;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user