Server IP : 162.213.251.212 / Your IP : 3.144.254.161 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/allssztx/public_html/easybuyer/node_modules/collect.js/src/methods/ |
Upload File : |
'use strict'; const variadic = require('../helpers/variadic'); module.exports = function except(...args) { const properties = variadic(args); if (Array.isArray(this.items)) { const collection = this.items .filter(item => properties.indexOf(item) === -1); return new this.constructor(collection); } const collection = {}; Object.keys(this.items).forEach((property) => { if (properties.indexOf(property) === -1) { collection[property] = this.items[property]; } }); return new this.constructor(collection); };