Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IsEmptyPipe

Implements

  • PipeTransform

Index

Constructors

Methods

Constructors

Methods

  • transform(value: string | Object | unknown[] | Set<unknown> | Map<unknown, unknown>): boolean
  • Check if is value is empty.

    Parameters

    • value: string | Object | unknown[] | Set<unknown> | Map<unknown, unknown>

    Returns boolean

    True for:

    • null
    • undefined
    • Array if Array.length === 0
    • String if string.length === 0
    • Object with no keys
    • (Set | Map).size === 0 otherwise false.

Generated using TypeDoc