Class Set

Hierarchy

Index

Properties

Methods

Properties

public []: Array<any>

public concatenatedProperties: Array<any>

Defines the properties that will be concatenated from the superclass (instead of overridden).

public firstObject: any

public hasEnumerableObservers: boolean

public isDestroyed: boolean

Destroyed object property flag. If this property is true the observers and bindings were already removed by the effect of calling the destroy() method.

public isDestroying: boolean

Destruction scheduled flag. The destroy() method has been called. The object stays intact until the end of the run loop at which point the isDestroyed flag is set.

public isFrozen: boolean

public lastObject: any

public length: number

public map: ItemIndexEnumerableCallbackTarget

public reject: ItemIndexEnumerableCallbackTarget

Methods

public add(obj: any): Set

Parameters

  • obj: any

Returns

Set

public addEach(any?: Array<any>): Set

Parameters

  • any?: Array<any> optional

Returns

Set

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

Parameters

Returns

Set

public addObject(object: any): any

Parameters

  • object: any

Returns

any

public addObjects(objects: Enumerable): Set

Parameters

Returns

Set

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 clear(): Set

Returns

Set

public compact(): Array<any>

Returns

Array<any>

public contains(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public copy(deep: boolean): Set

Parameters

  • deep: boolean

Returns

Set

public destroy(): CoreObject

Destroys an object by setting the isDestroyed flag and removing its metadata, which effectively destroys observers and bindings. If you try to set a property on a destroyed object, an exception will be raised. Note that destruction is scheduled for the end of the run loop and does not happen immediately. It will set an isDestroying flag immediately.

Returns

CoreObject

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): Set

Parameters

  • removing: number
  • adding: number

Returns

Set

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

Parameters

Returns

Set

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

Parameters

Returns

Set

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

Parameters

Returns

Set

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 freeze(): Set

Returns

Set

public frozenCopy(): Set

Returns

Set

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

Parameters

  • key: string

Returns

Array<any>

public init()

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

Parameters

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

Returns

Array<any>

public isEqual(obj: Set): boolean

Parameters

Returns

boolean

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 pop(): any

Returns

any

public push(obj: any): Set

Parameters

  • obj: any

Returns

Set

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 remove(obj: any): Set

Parameters

  • obj: any

Returns

Set

public removeEach(any?: Array<any>): Set

Parameters

  • any?: Array<any> optional

Returns

Set

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

Parameters

Returns

Set

public removeObject(object: any): any

Parameters

  • object: any

Returns

any

public removeObjects(objects: Enumerable): Set

Parameters

Returns

Set

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

Parameters

  • key: string
  • value?: any optional

Returns

any

public shift(): any

Returns

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 toString(): string

Returns a string representation which attempts to provide more information than Javascript's toString typically does, in a generic way for all Ember objects (e.g., "").

Returns

string

public uniq(): Set

Returns

Set

public unshift(obj: any): Set

Parameters

  • obj: any

Returns

Set

public willDestroy()

public without(value: any): Set

Parameters

  • value: any

Returns

Set