src/index.js
function removeDupProperties(selector) {
  // Remove duplicated properties from bottom to top ()
  for (let actIndex = selector.nodes.length - 1; actIndex >= 1; actIndex--) {
    for (let befIndex = actIndex - 1; befIndex >= 0; befIndex--) {
      if (selector.nodes[actIndex].prop === selector.nodes[befIndex].prop) {
        selector.nodes[befIndex].remove();
        actIndex--;
      }
    }
  }
}
function removeDupProperties(selector) {
  // Remove duplicated properties from bottom to top ()
  for (let actIndex = selector.nodes.length - 1; actIndex >= 1; actIndex--) {
    for (let befIndex = actIndex - 1; befIndex >= 0; befIndex--) {
      if (selector.nodes[actIndex].prop === selector.nodes[befIndex].prop) {
        selector.nodes[befIndex].remove();
        actIndex--;
      }
    }
  }
}
function removeDupProperties ( selector ) { // Remove duplicated properties from bottom to top () for ( let actIndex = selector . nodes . length - 1 ; actIndex >= 1 ; actIndex -- ) { for ( let befIndex = actIndex - 1 ; befIndex >= 0 ; befIndex -- ) { if ( selector . nodes [ actIndex ] . prop === selector . nodes [ befIndex ] . prop ) { selector . nodes [ befIndex ] . remove ( ) ; actIndex -- ; } } } }
Remove duplicated properties
@param {Object} selector - postcss selector node
Remove duplicated properties