Improve Jqhtml_Integration.js documentation with hydration system explanation Add jqhtml-laravel integration packages for traditional Laravel projects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
372 B
JavaScript
13 lines
372 B
JavaScript
'use strict';
|
|
|
|
var extractValues = require('../helpers/values');
|
|
|
|
var nestedValue = require('../helpers/nestedValue');
|
|
|
|
module.exports = function whereNotIn(key, values) {
|
|
var items = extractValues(values);
|
|
var collection = this.items.filter(function (item) {
|
|
return items.indexOf(nestedValue(item, key)) === -1;
|
|
});
|
|
return new this.constructor(collection);
|
|
}; |