Je moet ingelogd zijn om te stemmen.
Auteur: haytjes - 11 januari 2006 - 16:59 - Gekeurd door: nemesiskoen - Hits: 7931 - Aantal punten: 5.00 (2 stemmen)
<script> arr = Array("value1","value2","value3"); arr.in_array("testd"); // false arr.in_array("value2"); // true arr.in_array("value4"); // false </script>
<script>arr = Array("value1","value2","value3"); arr.in_array("testd"); // falsearr.in_array("value2"); // truearr.in_array("value4"); // false</script>
<script> Array.prototype.in_array = function (element) { var retur = false; for (var values in this) { if (this[values] == element) { retur = true; break; } } return retur; }; </script>
<script>Array.prototype.in_array = function (element) { var retur = false; for (var values in this) { if (this[values] == element) { retur = true; break; } } return retur;};</script>