Array has() documentation

This commit is contained in:
Pawel Kowal 2016-07-27 15:49:15 +02:00
parent 542bd81e76
commit 535a6f9faf
1 changed files with 9 additions and 0 deletions

View File

@ -4546,6 +4546,15 @@
Searches the array in reverse order for a value and returns its index or -1 if not found. Searches the array in reverse order for a value and returns its index or -1 if not found.
</description> </description>
</method> </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"> <method name="hash">
<return type="int"> <return type="int">
</return> </return>