projects
/
VSoRC
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
xterm
[VSoRC/.git]
/
node_modules
/
xterm
/
src
/
browser
/
renderer
/
RendererUtils.ts
1
/**
2
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
3
* @license MIT
4
*/
5
6
export function throwIfFalsy<T>(value: T | undefined | null): T {
7
if (!value) {
8
throw new Error('value must not be falsy');
9
}
10
return value;
11
}