Merge pull request #5940 from pkowal1982/array_has_doc

Array has() documentation
This commit is contained in:
Rémi Verschelde 2016-07-27 18:43:11 +02:00 committed by GitHub
commit 3d71f5e5ad

View file

@ -4546,6 +4546,15 @@
Searches the array in reverse order for a value and returns its index or -1 if not found.
</description>
</method>
<method name="has">
<return type="bool">
</return>
<argument index="0" name="value" type="var">
</argument>
<description>
Return true if the array contains given value. [code][ "inside", 7 ].has("inside") == true, [ "inside", 7 ].has("outside") == false, [ "inside", 7 ].has(7) == true, [ "inside", 7 ].has("7") == false[/code]
</description>
</method>
<method name="hash">
<return type="int">
</return>