throw-error (npm): Throws something if it’s an Error; otherwise returns it.
Keywords: throw|error