Twitter bootstrap – Improving performance of JS dedupe function
Function is question is from postcss-discard-duplicates plugin. Here is code in index.js: 'use strict'; var postcss = require('postcss'); function dedupe (node) { if (node.nodes) { node.each(dedupe); } if (node.type === 'comment') { return; } var nodes = node.parent.nodes.filter(function (n) {…