UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

12 lines (11 loc) 341 B
module.exports = function uniqueExcept (exclude) { return function unique () { var list = Array.prototype.concat.apply([], arguments); return list.filter(function (item, i) { if (item === exclude) { return true; } return i === list.indexOf(item); }); }; };