UNPKG

web-speech-profanity

Version:

Web Speech API adapter to use Cognitive Services Speech Services for both speech-to-text and text-to-speech service.

4 lines (3 loc) 136 B
export default function resolveFunctionOrReturnValue(fnOrValue) { return typeof fnOrValue === 'function' ? fnOrValue() : fnOrValue; }