Interface KnockoutObservableArrayFunctions

Hierarchy

Index

Methods

Methods

public destroy(item: T in KnockoutObservableArrayFunctions<T>)

Parameters

  • item: T in KnockoutObservableArrayFunctions<T>

public destroyAll(items: Array<T>)

Parameters

  • items: Array<T>

public destroyAll()

public indexOf(searchElement: T in KnockoutObservableArrayFunctions<T>, fromIndex?: number): number

Parameters

  • searchElement: T in KnockoutObservableArrayFunctions<T>
  • fromIndex?: number optional

Returns

number

public pop(): T in KnockoutObservableArrayFunctions<T>

Returns

T in KnockoutObservableArrayFunctions<T>

public push(items?: Array<T>)

Parameters

  • items?: Array<T> optional

public remove(item: T in KnockoutObservableArrayFunctions<T>): Array<T>

Parameters

  • item: T in KnockoutObservableArrayFunctions<T>

Returns

Array<T>

public remove(removeFunction: (item: T) => boolean): Array<T>

Parameters

  • removeFunction: (item: T) => boolean

Returns

Array<T>

public removeAll(items: Array<T>): Array<T>

Parameters

  • items: Array<T>

Returns

Array<T>

public removeAll(): Array<T>

Returns

Array<T>

public replace(oldItem: T in KnockoutObservableArrayFunctions<T>, newItem: T in KnockoutObservableArrayFunctions<T>)

Parameters

  • oldItem: T in KnockoutObservableArrayFunctions<T>
  • newItem: T in KnockoutObservableArrayFunctions<T>

public reverse(): Array<T>

Returns

Array<T>

public shift(): T in KnockoutObservableArrayFunctions<T>

Returns

T in KnockoutObservableArrayFunctions<T>

public slice(start: number, end?: number): Array<T>

Parameters

  • start: number
  • end?: number optional

Returns

Array<T>

public sort()

public sort(compareFunction: (left: T, right: T) => number)

Parameters

  • compareFunction: (left: T, right: T) => number

public splice(start: number): Array<T>

Parameters

  • start: number

Returns

Array<T>

public splice(start: number, deleteCount: number, items?: Array<T>): Array<T>

Parameters

  • start: number
  • deleteCount: number
  • items?: Array<T> optional

Returns

Array<T>

public unshift(items?: Array<T>): number

Parameters

  • items?: Array<T> optional

Returns

number