Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created April 27, 2021 21:32
Show Gist options
  • Save NyaGarcia/985f7e8b13b3d9e6f109e8b30d54321a to your computer and use it in GitHub Desktop.
Save NyaGarcia/985f7e8b13b3d9e6f109e8b30d54321a to your computer and use it in GitHub Desktop.
Creating an array with falsy values in the app.component
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