docs/libs/typescript.js
function find(array, predicate) {
        for (var i = 0, len = array.length; i < len; i++) {
            var value = array[i];
            if (predicate(value, i)) {
                return value;
            }
        }
        return undefined;
    }
function find(array, predicate) {
        for (var i = 0, len = array.length; i < len; i++) {
            var value = array[i];
            if (predicate(value, i)) {
                return value;
            }
        }
        return undefined;
    }
function find ( array , predicate ) { for ( var i = 0 , len = array . length ; i < len ; i ++ ) { var value = array [ i ] ; if ( predicate ( value , i ) ) { return value ; } } return undefined ; }
Works like Array.prototype.find, returning `undefined` if no element satisfying the predicate is found.
Works like Array . prototype . find returning undefined if no element satisfying the predicate is found .