Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Object literals

Object literals

TYPES

TYPES: object

Array

Array: object

Falsy

Falsy: (string | true | false)[] = ['foo', true]

Truthy

Truthy: string[][] = [['foo'], [], 'foo.bar'.split('.')]

Boolean

Boolean: object

Falsy

Falsy: number[] = [1, 0]

Truthy

Truthy: boolean[] = [true, false, Boolean(true)]

Date

Date: object

Falsy

Falsy: (true | false | undefined[])[] = [[], false]

Truthy

Truthy: Date[] = [new Date()]

Error

Error: object

Falsy

Falsy: string[] = ['123', void 0]

Truthy

Truthy: Error[] = [new Error(), new TypeError(), new SyntaxError()]

Function

Function: object

Falsy

Falsy: (true | false | undefined[])[] = [[], false]

Truthy

Truthy: ((Anonymous function) | sin)[] = [() => {}, Math.sin]

Null

Null: object

Falsy

Falsy: string[] = ['foo', void 0]

Truthy

Truthy: null[] = [null]

Number

Number: object

Falsy

Falsy: string[] = ['123', void 0]

Truthy

Truthy: number[] = [123, -99.99, Number(1)]

Object

Object: object

Falsy

Falsy: undefined[] = [void 0]

Truthy

Truthy: (object | object)[] = [{ foo: 'bar' }, {}]

RegExp

RegExp: object

Falsy

Falsy: (true | false | undefined[])[] = [[], false]

Truthy

Truthy: RegExp[] = [/test/g]

String

String: object

Falsy

Falsy: (true | false | undefined[])[] = [[], false]

Truthy

Truthy: string[] = ['foo', String('foo')]

Undefined

Undefined: object

Falsy

Falsy: (string | true | false)[] = ['foo', null, false]

Truthy

Truthy: undefined[] = [undefined, void 0]

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc