Blame view

node_modules/postcss-minify-font-values/lib/uniqs.js 341 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
  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);
          });
      };
  };