Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
'use strict';
module.exports = function diffKeys(object) {
let objectToDiff;
if (object instanceof this.constructor) {
objectToDiff = object.all();
} else {
objectToDiff = object;
}
const objectKeys = Object.keys(objectToDiff);
const remainingKeys = Object.keys(this.items)
.filter(item => objectKeys.indexOf(item) === -1);
return new this.constructor(this.items).only(
remainingKeys,
);
};