Current File : //home/tradevaly/www/node_modules/collect.js/src/methods/whereNotBetween.js
'use strict';

const nestedValue = require('../helpers/nestedValue');

module.exports = function whereNotBetween(key, values) {
  return this.filter(item => (
    nestedValue(item, key) < values[0] || nestedValue(item, key) > values[values.length - 1]
  ));
};