🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
274 B
JavaScript
Executable File
9 lines
274 B
JavaScript
Executable File
'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];
|
|
});
|
|
}; |