diff --git a/src/as/com/threerings/util/ArrayUtil.as b/src/as/com/threerings/util/ArrayUtil.as index 2ead45f15..b975a5807 100644 --- a/src/as/com/threerings/util/ArrayUtil.as +++ b/src/as/com/threerings/util/ArrayUtil.as @@ -120,15 +120,15 @@ public class ArrayUtil /** * Returns the first item in the array for which the predicate function returns true, or - * null if no such item was found. The predicate function should be of type: + * undefined if no such item was found. The predicate function should be of type: * function (element :*) :Boolean { } * - * @return the matching element, or null if no matching element was found. + * @return the matching element, or undefined if no matching element was found. */ public static function findIf (arr :Array, predicate :Function) :* { var index :int = (arr != null ? indexIf(arr, predicate) : -1); - return (index >= 0 ? arr[index] : null); + return (index >= 0 ? arr[index] : undefined); } /**