Skip to content

Commit

Permalink
remove redundant brackets from function signatures
Browse files Browse the repository at this point in the history
Since "*" indicates zero or more occurrences, asterisk-prefixed args
needn't be marked optional (via "[...]").
  • Loading branch information
davidchambers committed Feb 2, 2014
1 parent c9d2720 commit 19ebc53
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
</pre>

<p id="invoke">
<b class="header">invoke</b><code>_.invoke(list, methodName, [*arguments])</code>
<b class="header">invoke</b><code>_.invoke(list, methodName, *arguments)</code>
<br />
Calls the method named by <b>methodName</b> on each value in the <b>list</b>.
Any extra arguments passed to <b>invoke</b> will be forwarded on to the
Expand Down Expand Up @@ -834,7 +834,7 @@ <h2 id="arrays">Array Functions</h2>
</pre>

<p id="without">
<b class="header">without</b><code>_.without(array, [*values])</code>
<b class="header">without</b><code>_.without(array, *values)</code>
<br />
Returns a copy of the <b>array</b> with all instances of the <b>values</b>
removed.
Expand Down Expand Up @@ -1009,7 +1009,7 @@ <h2 id="arrays">Array Functions</h2>
<h2 id="functions">Function (uh, ahem) Functions</h2>

<p id="bind">
<b class="header">bind</b><code>_.bind(function, object, [*arguments])</code>
<b class="header">bind</b><code>_.bind(function, object, *arguments)</code>
<br />
Bind a <b>function</b> to an <b>object</b>, meaning that whenever
the function is called, the value of <i>this</i> will be the <b>object</b>.
Expand Down Expand Up @@ -1044,7 +1044,7 @@ <h2 id="functions">Function (uh, ahem) Functions</h2>
</pre>

<p id="partial">
<b class="header">partial</b><code>_.partial(function, [*arguments])</code>
<b class="header">partial</b><code>_.partial(function, *arguments)</code>
<br />
Partially apply a function by filling in any number of its arguments,
<i>without</i> changing its dynamic <tt>this</tt> value. A close cousin
Expand Down Expand Up @@ -1074,7 +1074,7 @@ <h2 id="functions">Function (uh, ahem) Functions</h2>
</pre>

<p id="delay">
<b class="header">delay</b><code>_.delay(function, wait, [*arguments])</code>
<b class="header">delay</b><code>_.delay(function, wait, *arguments)</code>
<br />
Much like <b>setTimeout</b>, invokes <b>function</b> after <b>wait</b>
milliseconds. If you pass the optional <b>arguments</b>, they will be
Expand All @@ -1087,7 +1087,7 @@ <h2 id="functions">Function (uh, ahem) Functions</h2>
</pre>

<p id="defer">
<b class="header">defer</b><code>_.defer(function, [*arguments])</code>
<b class="header">defer</b><code>_.defer(function, *arguments)</code>
<br />
Defers invoking the <b>function</b> until the current call stack has cleared,
similar to using <b>setTimeout</b> with a delay of 0. Useful for performing
Expand Down

0 comments on commit 19ebc53

Please sign in to comment.