src/TMXXMLParser.js
function (opts) {
        var objectName = opts.name
        var object = null

        this.objects.forEach(function (item) {
            if (item.name == objectName) {
                object = item
            }
        })
        if (object !== null) {
            return object
        }
    }
function (opts) {
        var objectName = opts.name
        var object = null

        this.objects.forEach(function (item) {
            if (item.name == objectName) {
                object = item
            }
        })
        if (object !== null) {
            return object
        }
    }
function ( opts ) { var objectName = opts . name var object = null this . objects . forEach ( function ( item ) { if ( item . name == objectName ) { object = item } } ) if ( object !== null ) { return object } }
Get the object for the specific object name. It will return the 1st
object found on the array for the given name.

@opt {String} name Object name
@returns {Object} Object
Get the object for the specific object name . It will return the 1st object found on the array for the given name .