Opal-Estate-Pro/node_modules/postcss-minify-font-values/lib/uniqs.js
2019-09-13 11:27:52 +07:00

12 lines
341 B
JavaScript
Executable File

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);
});
};
};