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
481 B
18 lines
481 B
|
2 years ago
|
"use strict";
|
||
|
|
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: true
|
||
|
|
});
|
||
|
|
exports["default"] = _default;
|
||
|
|
/**
|
||
|
|
* Check if an options object contains a certain `except` keyword.
|
||
|
|
* It will look for an `except` property whose value should
|
||
|
|
* be an array of keywords.
|
||
|
|
*
|
||
|
|
* @param {object} options
|
||
|
|
* @param {string} exceptionName
|
||
|
|
* @return {boolean}
|
||
|
|
*/
|
||
|
|
function _default(options, exceptionName) {
|
||
|
|
return options && options.except && options.except.includes(exceptionName);
|
||
|
|
}
|