if-else-throw (npm): If X, return Y, else throw Z.
Keywords: error|throw|test|check|passthrough|javascript|nodejs