source: trip-planner-front/node_modules/postcss-minify-font-values/dist/lib/uniqs.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 437 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = uniqueExcept;
7
8function uniqueExcept(exclude) {
9 return function unique() {
10 const list = Array.prototype.concat.apply([], arguments);
11 return list.filter((item, i) => {
12 if (item.toLowerCase() === exclude) {
13 return true;
14 }
15
16 return i === list.indexOf(item);
17 });
18 };
19}
20
21module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.