/** * Copyright (c) 2019 The xterm.js authors. All rights reserved. * @license MIT */ export function throwIfFalsy(value: T | undefined | null): T { if (!value) { throw new Error('value must not be falsy'); } return value; }