After diving into the Angular 2 TypeScript documentation, I have come across these two classes frequently. Can someone provide a detailed explanation of what they are?
One example code snippet from the QueryList API documentation showcases:
class QueryList {
changes : Observable<any>
length : number
first : T
last : T
map(fn: (item: T, index: number, array: T[]) => U) : U[]
filter(fn: (item: T, index: number, array: T[]) => boolean) : T[]
reduce(fn: (prevValue: U, curValue: T, curIndex: number, array: T[]) => U, init: U) : U
forEach(fn: (item: T, index: number, array: T[]) => void) : void
some(fn: (value: T, index: number, array: T[]) => boolean) : boolean
toArray() : T[]
toString() : string
reset(res: Array<T|any[]>) : void
notifyOnChanges() : void
setDirty()
dirty
}