Opal-Estate-Pro/node_modules/postcss-minify-font-values/lib/uniqs.js

12 lines
341 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
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);
});
};
};