Class MutableArray

Hierarchy

Index

Properties

Methods

Properties

public @each: EachProxy

public Boolean: boolean

public []: Array<any>

public firstObject: any

public hasEnumerableObservers: boolean

public lastObject: any

public length: number

public map: ItemIndexEnumerableCallbackTarget

public reject: ItemIndexEnumerableCallbackTarget

Methods

public addArrayObserver(target: any, opts?: EnumerableConfigurationOptions): Array<any>

Parameters

Returns

Array<any>

public addEnumerableObserver(target: any, opts: EnumerableConfigurationOptions): Enumerable

Parameters

Returns

Enumerable

public addObject(object: any): any

Parameters

  • object: any

Returns

any

public addObjects(objects: Enumerable): MutableEnumberable

Parameters

Returns

MutableEnumberable

public any(callback: Function, target?: any): boolean

Parameters

  • callback: Function
  • target?: any optional

Returns

boolean

public anyBy(key: string, value?: string): boolean

Parameters

  • key: string
  • value?: string optional

Returns

boolean

public arrayContentDidChange(startIdx: number, removeAmt: number, addAmt: number): Array<any>

Parameters

  • startIdx: number
  • removeAmt: number
  • addAmt: number

Returns

Array<any>

public arrayContentWillChange(startIdx: number, removeAmt: number, addAmt: number): Array<any>

Parameters

  • startIdx: number
  • removeAmt: number
  • addAmt: number

Returns

Array<any>

public clear(): Array<any>

Returns

Array<any>

public compact(): Array<any>

Returns

Array<any>

public contains(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public enumerableContentDidChange(start: number, removing: number, adding: number): any

Parameters

  • start: number
  • removing: number
  • adding: number

Returns

any

public enumerableContentDidChange(start: number, removing: Enumerable, adding: number): any

Parameters

  • start: number
  • removing: Enumerable
  • adding: number

Returns

any

public enumerableContentDidChange(start: number, removing: number, adding: Enumerable): any

Parameters

  • start: number
  • removing: number
  • adding: Enumerable

Returns

any

public enumerableContentDidChange(start: number, removing: Enumerable, adding: Enumerable): any

Parameters

Returns

any

public enumerableContentDidChange(removing: number, adding: number): any

Parameters

  • removing: number
  • adding: number

Returns

any

public enumerableContentDidChange(removing: Enumerable, adding: number): any

Parameters

Returns

any

public enumerableContentDidChange(removing: number, adding: Enumerable): any

Parameters

Returns

any

public enumerableContentDidChange(removing: Enumerable, adding: Enumerable): any

Parameters

Returns

any

public enumerableContentWillChange(removing: number, adding: number): Enumerable

Parameters

  • removing: number
  • adding: number

Returns

Enumerable

public enumerableContentWillChange(removing: Enumerable, adding: number): Enumerable

Parameters

Returns

Enumerable

public enumerableContentWillChange(removing: number, adding: Enumerable): Enumerable

Parameters

Returns

Enumerable

public enumerableContentWillChange(removing: Enumerable, adding: Enumerable): Enumerable

Parameters

Returns

Enumerable

public every(callback: Function, target?: any): boolean

Parameters

  • callback: Function
  • target?: any optional

Returns

boolean

public everyBy(key: string, value?: string): boolean

Parameters

  • key: string
  • value?: string optional

Returns

boolean

public everyProperty(key: string, value?: string): boolean

Parameters

  • key: string
  • value?: string optional

Returns

boolean

public filter(callback: Function, target: any): Array<any>

Parameters

  • callback: Function
  • target: any

Returns

Array<any>

public filterBy(key: string, value?: string): Array<any>

Parameters

  • key: string
  • value?: string optional

Returns

Array<any>

public find(callback: Function, target: any): any

Parameters

  • callback: Function
  • target: any

Returns

any

public findBy(key: string, value?: string): any

Parameters

  • key: string
  • value?: string optional

Returns

any

public forEach(callback: Function, target?: any): any

Parameters

  • callback: Function
  • target?: any optional

Returns

any

public getEach(key: string): Array<any>

Parameters

  • key: string

Returns

Array<any>

public indexOf(object: any, startAt: number): number

Parameters

  • object: any
  • startAt: number

Returns

number

public insertAt(idx: number, object: any): Array<any>

Parameters

  • idx: number
  • object: any

Returns

Array<any>

public invoke(methodName: string, any?: Array<any>): Array<any>

Parameters

  • methodName: string
  • any?: Array<any> optional

Returns

Array<any>

public lastIndexOf(object: any, startAt: number): number

Parameters

  • object: any
  • startAt: number

Returns

number

public mapBy(key: string): Array<any>

Parameters

  • key: string

Returns

Array<any>

public nextObject(index: number, previousObject: any, context: any): any

Parameters

  • index: number
  • previousObject: any
  • context: any

Returns

any

public objectAt(idx: number): any

Parameters

  • idx: number

Returns

any

public objectsAt(number?: Array<any>): Array<any>

Parameters

  • number?: Array<any> optional

Returns

Array<any>

public popObject(): any

Returns

any

public pushObject(obj: any): any

Parameters

  • obj: any

Returns

any

public pushObjects(any?: Array<any>): Array<any>

Parameters

  • any?: Array<any> optional

Returns

Array<any>

public reduce(callback: ReduceCallback, initialValue: any, reducerProperty: string): any

Parameters

Returns

any

public rejectBy(key: string, value?: string): Array<any>

Parameters

  • key: string
  • value?: string optional

Returns

Array<any>

public removeArrayObserver(target: any, opts: EnumerableConfigurationOptions): Array<any>

Parameters

Returns

Array<any>

public removeAt(start: number, len: number): any

Parameters

  • start: number
  • len: number

Returns

any

public removeEnumerableObserver(target: any, opts: EnumerableConfigurationOptions): Enumerable

Parameters

Returns

Enumerable

public removeObject(object: any): any

Parameters

  • object: any

Returns

any

public removeObjects(objects: Enumerable): MutableEnumberable

Parameters

Returns

MutableEnumberable

public replace(idx: number, amt: number, objects: Array<any>): any

Parameters

  • idx: number
  • amt: number
  • objects: Array<any>

Returns

any

public reverseObjects(): Array<any>

Returns

Array<any>

public setEach(key: string, value?: any): any

Parameters

  • key: string
  • value?: any optional

Returns

any

public setObjects(objects: Array<any>): Array<any>

Parameters

  • objects: Array<any>

Returns

Array<any>

public shiftObject(): any

Returns

any

public slice(beginIndex?: number, endIndex?: number): Array<any>

Parameters

  • beginIndex?: number optional
  • endIndex?: number optional

Returns

Array<any>

public some(callback: Function, target?: any): boolean

Parameters

  • callback: Function
  • target?: any optional

Returns

boolean

public someProperty(key: string, value?: string): boolean

Parameters

  • key: string
  • value?: string optional

Returns

boolean

public toArray(): Array<any>

Returns

Array<any>

public uniq(): Enumerable

Returns

Enumerable

public unshiftObject(object: any): any

Parameters

  • object: any

Returns

any

public unshiftObjects(objects: Array<any>): Array<any>

Parameters

  • objects: Array<any>

Returns

Array<any>

public without(value: any): Enumerable

Parameters

  • value: any

Returns

Enumerable