remove (array, fn) {
    if (!array || !array.length) {
      return
    }
    const index = this.findIndex(array, fn)
    if (index >= 0) {
      array.splice(index, 1) // todo should this be recursive?
    }
  }
Remove the last item found in array according to the given checker function.

@example
import { utils } from 'js-data';

const colors = ['red', 'green', 'yellow', 'red'];
utils.remove(colors, (color) => color === 'red');
console.log(colors); // ['red', 'green', 'yellow']

@method utils.remove
@param {array} array The array to search.
@param {Function} fn Checker function.