docs/libs/typescript.js
function findMap(array, callback) {
        for (var i = 0, len = array.length; i < len; i++) {
            var result = callback(array[i], i);
            if (result) {
                return result;
            }
        }
        Debug.fail();
    }
function findMap(array, callback) {
        for (var i = 0, len = array.length; i < len; i++) {
            var result = callback(array[i], i);
            if (result) {
                return result;
            }
        }
        Debug.fail();
    }
function findMap ( array , callback ) { for ( var i = 0 , len = array . length ; i < len ; i ++ ) { var result = callback ( array [ i ] , i ) ; if ( result ) { return result ; } } Debug . fail ( ) ; }
Returns the first truthy result of `callback`, or else fails.
This is like `forEach`, but never returns undefined.
Returns the first truthy result of callback or else fails . This is like forEach but never returns undefined .