dist/utils.js
function matchModel(item, type, id) {
    /* istanbul ignore next */
    return getType(item) === type && getProp(item, item.static.idAttribute) === id;
}
function matchModel(item, type, id) {
    /* istanbul ignore next */
    return getType(item) === type && getProp(item, item.static.idAttribute) === id;
}
function matchModel ( item , type , id ) { /* istanbul ignore next */ return getType ( item ) === type && getProp ( item , item . static . idAttribute ) === id ; }
Match a model to defined parameters

@private
@param {IModel} item - Model that's beeing matched
@param {IType} type - Model type to match
@param {(string|number)} id - Model ID to match
@returns {boolean} True if the model matches the parameters

@memberOf Collection
Match a model to defined parameters