(value, optionName)
| 109 | }; |
| 110 | |
| 111 | export const checkBooleanOption = (value, optionName) => { |
| 112 | if (value !== undefined && typeof value !== 'boolean') { |
| 113 | throw new TypeError(`The \`${optionName}\` option must use a boolean.`); |
| 114 | } |
| 115 | }; |
| 116 | |
| 117 | const isGenerator = value => isAsyncGenerator(value) || isSyncGenerator(value); |
| 118 | export const isAsyncGenerator = value => Object.prototype.toString.call(value) === '[object AsyncGeneratorFunction]'; |
no outgoing calls
no test coverage detected