build/rekord.js
function(comparator, startingValue)
  {
    var cmp = createComparator( comparator || this.comparator, false );
    var min = startingValue;

    for (var i = 0; i < this.length; i++)
    {
      if ( cmp( min, this[i] ) > 0 )
      {
        min = this[i];
      }
    }

    return min;
  }
function(comparator, startingValue)
  {
    var cmp = createComparator( comparator || this.comparator, false );
    var min = startingValue;

    for (var i = 0; i < this.length; i++)
    {
      if ( cmp( min, this[i] ) > 0 )
      {
        min = this[i];
      }
    }

    return min;
  }
function ( comparator , startingValue ) { var cmp = createComparator ( comparator || this . comparator , false ) ; var min = startingValue ; for ( var i = 0 ; i < this . length ; i ++ ) { if ( cmp ( min , this [ i ] ) > 0 ) { min = this [ i ] ; } } return min ; }
Returns the element with the minimum value given a comparator.

```javascript
var c = Rekord.collect({age: 4}, {age: 5}, {age: 6}, {age: 3});
c.minModel('age'); // {age: 3}
c.minModel('-age'); // {age: 6}
```

@method
@memberof Rekord.Collection#
@param {comparatorInput} comparator -
The comparator which calculates the minimum model.
@param {Any} [startingValue]
The initial minimum value. If a value is specified, it's compared
against all elements in this collection until the comparator function
finds a more minimal value. If it doesn't - this is the value returned.
@return {Any} -
The minimum element in the collection given the comparator function.
@see Rekord.createComparator
Returns the element with the minimum value given a comparator .