Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

156 B
Raw Blame
export function assert(condition: unknown, message?: string): asserts condition {
	if (!condition) {
		throw new Error(message ?? 'Assertion failed');
	}
}