* @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license
(value: undefined | string)
| 7 | */ |
| 8 | |
| 9 | function _isTruthy(value: undefined | string): boolean { |
| 10 | // Returns true if value is a string that is anything but 0 or false. |
| 11 | return value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE'; |
| 12 | } |
| 13 | |
| 14 | export function isTTY(): boolean { |
| 15 | // If we force TTY, we always return true. |