build/rekord.js
function(properties, value, equals)
  {
    var where = createWhere( properties, value, equals );

    for (var i = this.length - 1; i >= 0; i--)
    {
      var model = this[ i ];

      if ( where( model ) )
      {
        return model;
      }
    }

    return null;
  }
function(properties, value, equals)
  {
    var where = createWhere( properties, value, equals );

    for (var i = this.length - 1; i >= 0; i--)
    {
      var model = this[ i ];

      if ( where( model ) )
      {
        return model;
      }
    }

    return null;
  }
function ( properties , value , equals ) { var where = createWhere ( properties , value , equals ) ; for ( var i = this . length - 1 ; i >= 0 ; i -- ) { var model = this [ i ] ; if ( where ( model ) ) { return model ; } } return null ; }
Returns the last element where the given expression is true.

```javascript
var c = Rekord.collect([{x: 5}, {y: 6}, {y: 6, age: 8}, {z: 7}]);
c.lastWhere('y', 6); // {x: 6, age: 8}
c.lastWhere(); // {z: 7}
```

@method
@memberof Rekord.Collection#
@param {whereInput} [properties] -
The expression used to create a function to test the elements in this
collection.
@param {Any} [value] -
When the first argument is a string this argument will be treated as a
value to compare to the value of the named property on the object passed
through the filter function.
@param {equalityCallback} [equals=Rekord.equalsStrict] -
An alternative function can be used to compare to values.
@return {Any} -
The last element in this collection that matches the given expression.
@see Rekord.createWhere
Returns the last element where the given expression is true .