Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SliceTools

Class used to provide helpers for slicing

Hierarchy

  • SliceTools

Index

Methods

Static SliceSearch playground for Slice

  • Slice<T>(data: T, start?: number, end?: number): T
  • Provides a slice function that will work even on IE

    Type parameters

    • T

    Parameters

    • data: T

      defines the array to slice

    • Optional start: number

      defines the start of the data (optional)

    • Optional end: number

      defines the end of the data (optional)

    Returns T

    the new sliced array

Static SliceToArraySearch playground for SliceToArray

  • SliceToArray<T, P>(data: T, start?: number, end?: number): Array<P>
  • Provides a slice function that will work even on IE The difference between this and Slice is that this will force-convert to array

    Type parameters

    • T

    • P

    Parameters

    • data: T

      defines the array to slice

    • Optional start: number

      defines the start of the data (optional)

    • Optional end: number

      defines the end of the data (optional)

    Returns Array<P>

    the new sliced array

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method