public/js-roguelike-skeleton/src/valid-targets.js
function(value){
            for(var i = this.targets.length - 1; i >= 0; i--){
                var target = this.targets[i];
                if(target.value === value){
                    return target;
                }
            }
        }
function(value){
            for(var i = this.targets.length - 1; i >= 0; i--){
                var target = this.targets[i];
                if(target.value === value){
                    return target;
                }
            }
        }
function ( value ) { for ( var i = this . targets . length - 1 ; i >= 0 ; i -- ) { var target = this . targets [ i ] ; if ( target . value === value ) { return target ; } } }
Finds a target object by its value.
@method getTargetByValue
@param {Object} value
@return {Object}
Finds a target object by its value .