Skip to content
Snippets Groups Projects
Unverified Commit 78414dee authored by syuilo's avatar syuilo
Browse files

Add note

parent 08413514
No related branches found
No related tags found
No related merge requests found
/**
* 値が null または undefined の場合はエラーを発生させ、そうでない場合は値をそのまま返します
*/
export function ensure<T>(x: T): NonNullable<T> {
if (x == null) {
throw 'ぬるぽ';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment