Files
Speedtest-Tracker/conf/site/node_modules/collect.js/dist/methods/diffKeys.js
Henry Whitaker ea5808047f Tweaked gitignore
gitignore removed all composer and npm files, so automated builds would fail
2020-04-12 21:24:03 +01:00

19 lines
444 B
JavaScript
Vendored

'use strict';
module.exports = function diffKeys(object) {
var objectToDiff = void 0;
if (object instanceof this.constructor) {
objectToDiff = object.all();
} else {
objectToDiff = object;
}
var objectKeys = Object.keys(objectToDiff);
var remainingKeys = Object.keys(this.items).filter(function (item) {
return objectKeys.indexOf(item) === -1;
});
return new this.constructor(this.items).only(remainingKeys);
};