Methods
__@iterator
- __@iterator(): IterableIterator<T>
-
Returns IterableIterator<T>
concat
-
Parameters
-
Rest ...items: (ImmuList<T> | T | T[])[]
edit
-
Parameters
-
cb: function
-
- (list: List<T>, ListModule: "/Users/z/Projects/Node/Hydux/hydux-mutator/node_modules/@funkia/list/index"): List<T>
-
Parameters
-
list: List<T>
-
ListModule: "/Users/z/Projects/Node/Hydux/hydux-mutator/node_modules/@funkia/list/index"
Returns List<T>
editWithAny
- editWithAny<U>(cb: function): U
-
Type parameters
Parameters
-
cb: function
-
- (list: List<T>, ListModule: "/Users/z/Projects/Node/Hydux/hydux-mutator/node_modules/@funkia/list/index"): U
-
Parameters
-
list: List<T>
-
ListModule: "/Users/z/Projects/Node/Hydux/hydux-mutator/node_modules/@funkia/list/index"
Returns U
Returns U
entries
- entries(): IterableIterator<[number, T]>
-
Returns IterableIterator<[number, T]>
every
- every(callbackfn: function, thisArg?: any): boolean
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: this): boolean
-
Parameters
-
value: T
-
index: number
-
array: this
Returns boolean
-
Optional thisArg: any
Returns boolean
filter
- filter(callbackfn: function, thisArg?: any): ImmuList<T>
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: this): boolean
-
Parameters
-
value: T
-
index: number
-
array: this
Returns boolean
-
Optional thisArg: any
find
- find(predicate: function, thisArg?: any): T | undefined
-
Parameters
-
predicate: function
-
- (value: T, index: number, obj: this): boolean
-
Parameters
-
value: T
-
index: number
-
obj: this
Returns boolean
-
Optional thisArg: any
Returns T
|
undefined
findIndex
- findIndex(predicate: function, thisArg?: any): number
-
Parameters
-
predicate: function
-
- (value: T, index: number, obj: this): boolean
-
Parameters
-
value: T
-
index: number
-
obj: this
Returns boolean
-
Optional thisArg: any
Returns number
forEach
- forEach(callbackfn: function, thisArg?: any): void
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: this): void
-
Parameters
-
value: T
-
index: number
-
array: this
Returns void
-
Optional thisArg: any
Returns void
includes
- includes(item: T): boolean
-
Parameters
Returns boolean
indexOf
- indexOf(searchElement: T, fromIndex?: number | undefined): number
-
Parameters
-
searchElement: T
-
Optional fromIndex: number | undefined
Returns number
join
- join(separator?: string | undefined): string
-
Parameters
-
Optional separator: string | undefined
Returns string
keys
- keys(): IterableIterator<number>
-
Returns IterableIterator<number>
map
- map<U>(callbackfn: function, thisArg?: any): ImmuList<U>
-
Type parameters
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: this): U
-
Parameters
-
value: T
-
index: number
-
array: this
Returns U
-
Optional thisArg: any
reduce
- reduce<U>(callbackfn: function, initialValue: U, thisArg?: any): U
-
Type parameters
Parameters
-
callbackfn: function
-
- (previousValue: U, currentValue: T, currentIndex: number, array: this): U
-
Parameters
-
previousValue: U
-
currentValue: T
-
currentIndex: number
-
array: this
Returns U
-
initialValue: U
-
Optional thisArg: any
Returns U
reduceRight
- reduceRight<U>(callbackfn: function, initialValue: U, thisArg?: any): U
-
Type parameters
Parameters
-
callbackfn: function
-
- (previousValue: U, currentValue: T, currentIndex: number, array: this): U
-
Parameters
-
previousValue: U
-
currentValue: T
-
currentIndex: number
-
array: this
Returns U
-
initialValue: U
-
Optional thisArg: any
Returns U
remove
- remove(from: number, amount?: number): ImmuList<T>
-
Parameters
-
from: number
-
Default value amount: number = 1
slice
- slice(start?: number | undefined, end?: number | undefined): ImmuList<T>
-
Parameters
-
Optional start: number | undefined
-
Optional end: number | undefined
some
- some(callbackfn: function, thisArg?: any): boolean
-
Parameters
-
callbackfn: function
-
- (value: T, index: number, array: this): boolean
-
Parameters
-
value: T
-
index: number
-
array: this
Returns boolean
-
Optional thisArg: any
Returns boolean
values
- values(): IterableIterator<T>
-
Returns IterableIterator<T>