getLastNode.js 235 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = (rule, prop) => {
  6. return rule.filter(n => n.prop && n.prop.toLowerCase() === prop).pop();
  7. };
  8. module.exports = exports["default"];