Aliasing _.contains to _.include

This commit is contained in:
Jeremy Ashkenas
2010-07-15 10:18:11 -04:00
parent 9827f87611
commit ef396a9e13
4 changed files with 4 additions and 2 deletions

View File

@@ -356,6 +356,7 @@ _.any([null, 0, 'yes', false]);
<p id="include">
<b class="header">include</b><code>_.include(list, value)</code>
<span class="alias">Alias: <b>contains</b></span>
<br />
Returns <i>true</i> if the <b>value</b> is present in the <b>list</b>, using
<i>===</i> to test equality. Uses <b>indexOf</b> internally, if <b>list</b>