hasAllProps.js 257 B

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