MCPcopy Index your code
hub / github.com/angular/angular-cli / _isTruthy

Function _isTruthy

packages/angular_devkit/build_angular/src/utils/tty.ts:9–12  ·  view source on GitHub ↗

* @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)

Source from the content-addressed store, hash-verified

7 */
8
9function _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
14export function isTTY(): boolean {
15 // If we force TTY, we always return true.

Callers 1

isTTYFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected