Revision: 45002
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 22, 2011 04:16 by scottwatkins
Initial Code
/** * _isInArray * Checks to see if a supplied element is in an array. * the indexOf function returns -1 if it doesn't find the * element in array, so we check if indexOf returns 0 or greater. * * @param element * (any object) The element we are checking for * @param array Array The array to see if element is in * @return Boolean True if element is found in array, False if not * @access private */ private function _isInArray(element:*, array:Array):Boolean { return (array.indexOf(element) >= 0); }
Initial URL
Initial Description
Initial Title
AS3 Is In Array?
Initial Tags
Initial Language
ActionScript 3