packageDocumentation module const assertionsEnabled = process . env . NODE_ENV === "development" ; param condition param message throws public export function assert ( condition , message ? ) { if ( ! assertionsEnabled ) return ; if ( "boolean" !== typeof condition ) condition = condition ( ) ; if ( condition ) return ; message = message ?? "Programmer Error" ; if ( "string" !== typeof message ) message = message ( ) ; throw new Error ( `Assert: ${ message }` ) ; }