Created
April 27, 2021 21:32
-
-
Save NyaGarcia/985f7e8b13b3d9e6f109e8b30d54321a to your computer and use it in GitHub Desktop.
Creating an array with falsy values in the app.component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from "@angular/core"; | |
@Component({ | |
selector: "my-app", | |
templateUrl: "./app.component.html", | |
styleUrls: ["./app.component.css"] | |
}) | |
export class AppComponent { | |
falsyArray = [false, "No", 0, "more", undefined, "falsy", null, "values", NaN]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment