This commit is contained in:
syuilo 2019-04-13 14:45:51 +09:00
parent e402ef3b1b
commit 7108b30078

View File

@ -1,3 +1,6 @@
/**
* null undefined
*/
export function ensure<T>(x: T): NonNullable<T> {
if (x == null) {
throw 'ぬるぽ';