Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LimitToPipe

whatitdoes

limits the given array to the first x items

Hierarchy

  • LimitToPipe

Implements

  • PipeTransform

Index

Methods

Methods

transform

  • transform(value: Array<any>, limit: number): any
  • limits the given array to the first limit items

    Parameters

    • value: Array<any>
    • limit: number

      the number of items allowed to pass through the pipe

    Returns any

Generated using TypeDoc