my-idlers/node_modules/collect.js/dist/methods/whereNotBetween.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

9 lines
274 B
JavaScript
Vendored

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