client/splunk.js
function(name) {
            for (var i = 0; i < this.objects.length; i++) {
                if (this.objects[i].name === name) {
                    return this.objects[i];
                }
            }
            return null;
        }
function(name) {
            for (var i = 0; i < this.objects.length; i++) {
                if (this.objects[i].name === name) {
                    return this.objects[i];
                }
            }
            return null;
        }
function ( name ) { for ( var i = 0 ; i < this . objects . length ; i ++ ) { if ( this . objects [ i ] . name === name ) { return this . objects [ i ] ; } } return null ; }
Returns a data model object from this data model
with the specified name if it exists, null otherwise.

@return {Object|null} a data model object.

@method splunkjs.Service.DataModel
Returns a data model object from this data model with the specified name if it exists null otherwise .