Methods
concat
- concat<U>(...items: U[]): T[]
- concat(...items: T[]): T[]
-
Type parameters
Parameters
Returns T[]
-
Parameters
Returns T[]
every
- every(callbackfn: function, thisArg?: any): boolean
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: T[]): boolean
-
Parameters
-
value: T
-
index: number
-
array: T[]
Returns boolean
-
Optional thisArg: any
Returns boolean
filter
- filter(callbackfn: function, thisArg?: any): T[]
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: T[]): boolean
-
Parameters
-
value: T
-
index: number
-
array: T[]
Returns boolean
-
Optional thisArg: any
Returns T[]
forEach
- forEach(callbackfn: function, thisArg?: any): void
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: T[]): void
-
Parameters
-
value: T
-
index: number
-
array: T[]
Returns void
-
Optional thisArg: any
Returns void
indexOf
- indexOf(searchElement: T, fromIndex?: number): number
-
Parameters
-
searchElement: T
-
Optional fromIndex: number
Returns number
join
- join(separator?: string): string
-
Parameters
-
Optional separator: string
Returns string
lastIndexOf
- lastIndexOf(searchElement: T, fromIndex?: number): number
-
Parameters
-
searchElement: T
-
Optional fromIndex: number
Returns number
map
- map<U>(callbackfn: function, thisArg?: any): U[]
-
Type parameters
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: T[]): U
-
Parameters
-
value: T
-
index: number
-
array: T[]
Returns U
-
Optional thisArg: any
Returns U[]
push
- push(...items: T[]): number
-
Parameters
Returns number
reduce
- reduce(callbackfn: function, initialValue?: T): T
- reduce<U>(callbackfn: function, initialValue: U): U
-
Parameters
-
callbackfn: function
-
- (previousValue: T, currentValue: T, currentIndex: number, array: T[]): T
-
Parameters
-
previousValue: T
-
currentValue: T
-
currentIndex: number
-
array: T[]
Returns T
-
Optional initialValue: T
Returns T
-
Type parameters
Parameters
-
callbackfn: function
-
- (previousValue: U, currentValue: T, currentIndex: number, array: T[]): U
-
Parameters
-
previousValue: U
-
currentValue: T
-
currentIndex: number
-
array: T[]
Returns U
-
initialValue: U
Returns U
reduceRight
- reduceRight(callbackfn: function, initialValue?: T): T
- reduceRight<U>(callbackfn: function, initialValue: U): U
-
Parameters
-
callbackfn: function
-
- (previousValue: T, currentValue: T, currentIndex: number, array: T[]): T
-
Parameters
-
previousValue: T
-
currentValue: T
-
currentIndex: number
-
array: T[]
Returns T
-
Optional initialValue: T
Returns T
-
Type parameters
Parameters
-
callbackfn: function
-
- (previousValue: U, currentValue: T, currentIndex: number, array: T[]): U
-
Parameters
-
previousValue: U
-
currentValue: T
-
currentIndex: number
-
array: T[]
Returns U
-
initialValue: U
Returns U
slice
- slice(start?: number, end?: number): T[]
-
Parameters
-
Optional start: number
-
Optional end: number
Returns T[]
some
- some(callbackfn: function, thisArg?: any): boolean
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: T[]): boolean
-
Parameters
-
value: T
-
index: number
-
array: T[]
Returns boolean
-
Optional thisArg: any
Returns boolean
sort
- sort(compareFn?: function): T[]
-
Parameters
-
Optional compareFn: function
-
-
Parameters
Returns number
Returns T[]
splice
- splice(start: number): T[]
- splice(start: number, deleteCount: number, ...items: T[]): T[]
-
Parameters
Returns T[]
-
Parameters
-
start: number
-
deleteCount: number
-
Rest ...items: T[]
Returns T[]
unshift
- unshift(...items: T[]): number
-
Parameters
Returns number