You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
514 B

4 years ago
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = getRules;
  6. var _getLastNode = require("./getLastNode");
  7. var _getLastNode2 = _interopRequireDefault(_getLastNode);
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function getRules(props, properties) {
  10. return properties.map(property => {
  11. return (0, _getLastNode2.default)(props, property);
  12. }).filter(Boolean);
  13. }
  14. module.exports = exports["default"];