getDecls.js 281 B

1234567891011
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = getDecls;
  4. function getDecls(rule, properties) {
  5. return rule.nodes.filter(function (_ref) {
  6. var prop = _ref.prop;
  7. return prop && ~properties.indexOf(prop);
  8. });
  9. }
  10. module.exports = exports["default"];