UNPKG

stylelint

Version:
17 lines (16 loc) 401 B
/** * 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} */ export default function (options, exceptionName) { return ( options && options.except && options.except.indexOf(exceptionName) !== -1 ) }