optionsHaveIgnored.js 475 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports["default"] = _default;
  6. /**
  7. * Check if an options object contains a certain `ignore` keyword.
  8. * It will look for an `ignore` property whose value should
  9. * be an array of keywords.
  10. *
  11. * @param {object} options
  12. * @param {string} ignoredName
  13. * @return {boolean}
  14. */
  15. function _default(options, ignoredName) {
  16. return options && options.ignore && options.ignore.includes(ignoredName);
  17. }