Classes
Palette
Extends
Constructors
Constructor
new Palette(items?): Palette;
Parameters
Returns
Palette
Inherited from
Collection.constructor
Constructor
new Palette(items?): Palette;
Parameters
Returns
Palette
Inherited from
Collection.constructor
Constructor
new Palette(...items): Palette;
Parameters
Returns
Palette
Inherited from
Collection.constructor
Accessors
empty
Get Signature
Returns
boolean
Inherited from
Collection.empty
length
Get Signature
Returns
number
Inherited from
Collection.length
Methods
[iterator]()
iterator: ArrayIterator<Swatch>;
Returns
ArrayIterator<Swatch>
Inherited from
Collection.[iterator]
add()
Parameters
Returns
void
Inherited from
Collection.add
addRange()
Adds the specified items to the end of the collection.
Parameters
Returns
void
Inherited from
Collection.addRange
aggregate()
Call Signature
Parameters
| Parameter | Type |
|---|
func | (prev, current) => Swatch |
Returns
Swatch
Inherited from
Collection.aggregate
Call Signature
aggregate<TAccumulate>(seed, func): TAccumulate;
Type Parameters
| Type Parameter |
|---|
TAccumulate |
Parameters
| Parameter | Type |
|---|
seed | TAccumulate |
func | (prev, current) => TAccumulate |
Returns
TAccumulate
Inherited from
Collection.aggregate
Call Signature
aggregate<TAccumulate, TResult>(
seed,
func,
resultSelector): TResult;
Type Parameters
| Type Parameter |
|---|
TAccumulate |
TResult |
Parameters
| Parameter | Type |
|---|
seed | TAccumulate |
func | (prev, current) => TAccumulate |
resultSelector | (last) => TResult |
Returns
TResult
Inherited from
Collection.aggregate
all()
Parameters
| Parameter | Type |
|---|
predicate | (element) => boolean |
Returns
boolean
Inherited from
Collection.all
alternate()
Call Signature
alternate(alternateValue): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
alternateValue | Swatch |
Returns
IEnumerable<T>
Inherited from
Collection.alternate
Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
alternateSequence | { [x: number]: Swatch; length: number; } |
alternateSequence.length | number |
Returns
IEnumerable<T>
Inherited from
Collection.alternate
Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
alternateSequence | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Collection.alternate
Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
alternateSequence | Swatch[] |
Returns
IEnumerable<T>
Inherited from
Collection.alternate
any()
any(predicate?): boolean;
Parameters
| Parameter | Type |
|---|
predicate? | (element) => boolean |
Returns
boolean
Inherited from
Collection.any
asEnumerable()
asEnumerable(): IEnumerable<T>;
Returns
IEnumerable<T>
Inherited from
Collection.asEnumerable
average()
average(selector?): number;
Parameters
| Parameter | Type |
|---|
selector? | (element) => number |
Returns
number
Inherited from
Collection.average
buffer()
buffer(count): IEnumerable<T[]>;
Parameters
Returns
IEnumerable<T[]>
Inherited from
Collection.buffer
cast()
cast<TResult>(): IEnumerable<TResult>;
Type Parameters
Returns
IEnumerable<TResult>
Inherited from
Collection.cast
catchError()
catchError(handler): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
handler | (exception) => void |
Returns
IEnumerable<T>
Inherited from
Collection.catchError
choose()
choose(selector): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
selector | (element, index) => Swatch |
Returns
IEnumerable<T>
Inherited from
Collection.choose
clear()
Removes all items from the collection
Returns
void
Inherited from
Collection.clear
collectionChanged()
collectionChanged(h): void;
Parameters
Returns
void
Inherited from
Collection.collectionChanged
collectionChanged()
collectionChanged(h): void;
Parameters
Returns
void
Inherited from
Collection.collectionChanged
concat()
Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
...sequences | IEnumerable<T>[] |
Returns
IEnumerable<T>
Inherited from
Collection.concat
Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
...sequences | object[] |
Returns
IEnumerable<T>
Inherited from
Collection.concat
Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
...sequences | Swatch[] |
Returns
IEnumerable<T>
Inherited from
Collection.concat
constructor()
constructor(getEnumerator): never;
Parameters
| Parameter | Type |
|---|
getEnumerator | () => IEnumerator<T> |
Returns
never
Inherited from
contains()
Call Signature
contains(value): boolean;
Parameters
Returns
boolean
Inherited from
Collection.contains
Call Signature
contains<TCompare>(value, compareSelector?): boolean;
Type Parameters
Parameters
| Parameter | Type |
|---|
value | Swatch |
compareSelector? | (element) => TCompare |
Returns
boolean
Inherited from
Collection.contains
count()
count(predicate?): number;
Parameters
| Parameter | Type |
|---|
predicate? | (element, index) => boolean |
Returns
number
Inherited from
Collection.count
defaultIfEmpty()
defaultIfEmpty(defaultValue?): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
defaultValue? | Swatch |
Returns
IEnumerable<T>
Inherited from
Collection.defaultIfEmpty
distinct()
Call Signature
distinct(): IEnumerable<T>;
Returns
IEnumerable<T>
Inherited from
Collection.distinct
Call Signature
distinct<TCompare>(compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.distinct
distinctUntilChanged()
Call Signature
distinctUntilChanged(): IEnumerable<T>;
Returns
IEnumerable<T>
Inherited from
Collection.distinctUntilChanged
Call Signature
distinctUntilChanged<TCompare>(compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.distinctUntilChanged
doAction()
Call Signature
doAction(action): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
action | (element, index) => void |
Returns
IEnumerable<T>
Inherited from
Collection.doAction
Call Signature
doAction(action): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
action | (element, index) => boolean |
Returns
IEnumerable<T>
Inherited from
Collection.doAction
elementAt()
elementAt(index): Swatch;
Parameters
Returns
Swatch
Inherited from
Collection.elementAt
elementAtOrDefault()
elementAtOrDefault(index, defaultValue?): Swatch;
Parameters
| Parameter | Type |
|---|
index | number |
defaultValue? | Swatch |
Returns
Swatch
Inherited from
Collection.elementAtOrDefault
except()
Call Signature
except(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
IEnumerable<T>
Inherited from
Collection.except
Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.except
Call Signature
except(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Collection.except
Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.except
Call Signature
except(second): IEnumerable<T>;
Parameters
Returns
IEnumerable<T>
Inherited from
Collection.except
Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | Swatch[] |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.except
finallyAction()
finallyAction(finallyAction): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
finallyAction | () => void |
Returns
IEnumerable<T>
Inherited from
Collection.finallyAction
first()
first(predicate?): Swatch;
Parameters
| Parameter | Type |
|---|
predicate? | (element, index) => boolean |
Returns
Swatch
Inherited from
Collection.first
firstOrDefault()
firstOrDefault(predicate?, defaultValue?): Swatch;
Parameters
| Parameter | Type |
|---|
predicate? | Swatch | ((element, index) => boolean) |
defaultValue? | Swatch |
Returns
Swatch
Inherited from
Collection.firstOrDefault
flatten()
flatten(): IEnumerable<any>;
Returns
IEnumerable<any>
Inherited from
Collection.flatten
force()
Returns
void
Inherited from
Collection.force
forEach()
Call Signature
Parameters
| Parameter | Type |
|---|
action | (element, index) => void |
Returns
void
Inherited from
Collection.forEach
Call Signature
Parameters
| Parameter | Type |
|---|
action | (element, index) => boolean |
Returns
void
Inherited from
Collection.forEach
get()
Parameters
Returns
Swatch
Inherited from
Collection.get
getEnumerator()
getEnumerator(): IEnumerator<T>;
Returns
IEnumerator<T>
Inherited from
Collection.getEnumerator
getItem()
Parameters
Returns
Swatch
Inherited from
Collection.getItem
groupBy()
Call Signature
groupBy<TKey>(keySelector): IEnumerable<IGrouping<TKey, T>>;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
IEnumerable<IGrouping<TKey, T>>
Inherited from
Collection.groupBy
Call Signature
groupBy<TKey, TElement>(keySelector, elementSelector): IEnumerable<IGrouping<TKey, TElement>>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
Returns
IEnumerable<IGrouping<TKey, TElement>>
Inherited from
Collection.groupBy
Call Signature
groupBy<TKey, TElement, TResult>(
keySelector,
elementSelector,
resultSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
TResult |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
resultSelector | (key, element) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.groupBy
Call Signature
groupBy<TKey, TElement, TResult, TCompare>(
keySelector,
elementSelector,
resultSelector,
compareSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
TResult |
TCompare |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
resultSelector | (key, element) => TResult |
compareSelector | (element) => TCompare |
Returns
IEnumerable<TResult>
Inherited from
Collection.groupBy
groupJoin()
Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|
inner | IEnumerable<TInner> |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Collection.groupJoin
Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|
inner | { [x: number]: TInner; length: number; } |
inner.length | number |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Collection.groupJoin
Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|
inner | TInner[] |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Collection.groupJoin
indexOf()
Call Signature
Parameters
Returns
number
Inherited from
Collection.indexOf
Call Signature
indexOf(predicate): number;
Parameters
| Parameter | Type |
|---|
predicate | (element, index) => boolean |
Returns
number
Inherited from
Collection.indexOf
insert()
Call Signature
insert(index, second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
index | number |
second | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Collection.insert
Call Signature
insert(index, second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
index | number |
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
IEnumerable<T>
Inherited from
Collection.insert
insertAt()
insertAt(index, items): void;
Inserts the specified item into the collection at the specified index.
Parameters
Returns
void
Inherited from
Collection.insertAt
intersect()
Call Signature
intersect(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
IEnumerable<T>
Inherited from
Collection.intersect
Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.intersect
Call Signature
intersect(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Collection.intersect
Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.intersect
Call Signature
intersect(second): IEnumerable<T>;
Parameters
Returns
IEnumerable<T>
Inherited from
Collection.intersect
Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | Swatch[] |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.intersect
isEmpty()
Returns
boolean
Inherited from
Collection.isEmpty
itemAdded()
Parameters
| Parameter | Type |
|---|
h | (data?) => any |
Returns
void
Inherited from
Collection.itemAdded
itemAdded()
Parameters
Returns
void
Inherited from
Collection.itemAdded
itemMoved()
Parameters
| Parameter | Type |
|---|
h | (data?) => any |
Returns
void
Inherited from
Collection.itemMoved
itemMoved()
Parameters
| Parameter | Type |
|---|
h | (data?) => any |
Returns
void
Inherited from
Collection.itemMoved
itemRemoved()
Parameters
| Parameter | Type |
|---|
h | (data?) => any |
Returns
void
Inherited from
Collection.itemRemoved
itemRemoved()
Parameters
Returns
void
Inherited from
Collection.itemRemoved
join()
Call Signature
join<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|
inner | IEnumerable<TInner> |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Collection.join
Call Signature
join<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|
inner | { [x: number]: TInner; length: number; } |
inner.length | number |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Collection.join
Call Signature
join<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|
inner | TInner[] |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Collection.join
last()
last(predicate?): Swatch;
Parameters
| Parameter | Type |
|---|
predicate? | (element, index) => boolean |
Returns
Swatch
Inherited from
Collection.last
lastIndexOf()
Call Signature
lastIndexOf(item): number;
Parameters
Returns
number
Inherited from
Collection.lastIndexOf
Call Signature
lastIndexOf(predicate): number;
Parameters
| Parameter | Type |
|---|
predicate | (element, index) => boolean |
Returns
number
Inherited from
Collection.lastIndexOf
lastOrDefault()
lastOrDefault(predicate?, defaultValue?): Swatch;
Parameters
| Parameter | Type |
|---|
predicate? | Swatch | ((element, index) => boolean) |
defaultValue? | Swatch |
Returns
Swatch
Inherited from
Collection.lastOrDefault
letBind()
Call Signature
letBind<TResult>(func): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
func | (source) => object |
Returns
IEnumerable<TResult>
Inherited from
Collection.letBind
Call Signature
letBind<TResult>(func): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
func | (source) => TResult[] |
Returns
IEnumerable<TResult>
Inherited from
Collection.letBind
Call Signature
letBind<TResult>(func): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
func | (source) => IEnumerable<TResult> |
Returns
IEnumerable<TResult>
Inherited from
Collection.letBind
log()
Call Signature
Returns
IEnumerable<T>
Inherited from
Collection.log
Call Signature
log<TValue>(selector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
selector | (element) => TValue |
Returns
IEnumerable<T>
Inherited from
Collection.log
max()
Parameters
| Parameter | Type |
|---|
selector? | (element) => number |
Returns
number
Inherited from
Collection.max
maxBy()
maxBy<TKey>(keySelector): Swatch;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
Swatch
Inherited from
Collection.maxBy
memoize()
memoize(): IDisposableEnumerable<T>;
Returns
IDisposableEnumerable<T>
Inherited from
Collection.memoize
merge()
Call Signature
merge<TResult>(...params): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
...params | IEnumerable<T>[] |
Returns
IEnumerable<T>
Inherited from
Collection.merge
Call Signature
merge<TResult>(...params): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
...params | object[] |
Returns
IEnumerable<T>
Inherited from
Collection.merge
Call Signature
merge<TResult>(...params): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
...params | Swatch[][] |
Returns
IEnumerable<T>
Inherited from
Collection.merge
min()
Parameters
| Parameter | Type |
|---|
selector? | (element) => number |
Returns
number
Inherited from
Collection.min
minBy()
minBy<TKey>(keySelector): Swatch;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
Swatch
Inherited from
Collection.minBy
move()
move(
oldIndex,
newIndex,
supressEvent?): Swatch;
Parameters
| Parameter | Type |
|---|
oldIndex | any |
newIndex | any |
supressEvent? | boolean |
Returns
Swatch
Inherited from
Collection.move
ofType()
ofType<TOf>(type): IEnumerable<TOf>;
Type Parameters
Parameters
| Parameter | Type |
|---|
type | Type<TOf> |
Returns
IEnumerable<TOf>
Inherited from
Collection.ofType
orderBy()
orderBy<TKey>(keySelector): IOrderedEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
IOrderedEnumerable<T>
Inherited from
Collection.orderBy
orderByDescending()
orderByDescending<TKey>(keySelector): IOrderedEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
IOrderedEnumerable<T>
Inherited from
Collection.orderByDescending
pairwise()
pairwise<TResult>(selector): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
selector | (prev, current) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.pairwise
partitionBy()
Call Signature
partitionBy<TKey>(keySelector): IEnumerable<IGrouping<TKey, any>>;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
IEnumerable<IGrouping<TKey, any>>
Inherited from
Collection.partitionBy
Call Signature
partitionBy<TKey, TElement>(keySelector, elementSelector): IEnumerable<IGrouping<TKey, TElement>>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
Returns
IEnumerable<IGrouping<TKey, TElement>>
Inherited from
Collection.partitionBy
Call Signature
partitionBy<TKey, TElement, TResult>(
keySelector,
elementSelector,
resultSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
TResult |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
resultSelector | (key, element) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.partitionBy
Call Signature
partitionBy<TKey, TElement, TResult, TCompare>(
keySelector,
elementSelector,
resultSelector,
compareSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
TResult |
TCompare |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
resultSelector | (key, element) => TResult |
compareSelector | (element) => TCompare |
Returns
IEnumerable<TResult>
Inherited from
Collection.partitionBy
push()
Parameters
Returns
number
Inherited from
Collection.push
remove()
Parameters
Returns
Swatch
Inherited from
Collection.remove
removeAt()
Removes the item at the specified index of the collection.
Parameters
Returns
Swatch
Inherited from
Collection.removeAt
removeRange()
removeRange(from, to): Swatch[];
Parameters
| Parameter | Type |
|---|
from | number |
to | number |
Returns
Swatch[]
Inherited from
Collection.removeRange
replaceAt()
replaceAt(item, index): void;
Parameters
| Parameter | Type |
|---|
item | Swatch |
index | number |
Returns
void
Inherited from
Collection.replaceAt
reverse()
reverse(): IEnumerable<T>;
Returns
IEnumerable<T>
Inherited from
Collection.reverse
scan()
Call Signature
scan(func): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
func | (prev, current) => Swatch |
Returns
IEnumerable<T>
Inherited from
Collection.scan
Call Signature
scan<TAccumulate>(seed, func): IEnumerable<TAccumulate>;
Type Parameters
| Type Parameter |
|---|
TAccumulate |
Parameters
| Parameter | Type |
|---|
seed | TAccumulate |
func | (prev, current) => TAccumulate |
Returns
IEnumerable<TAccumulate>
Inherited from
Collection.scan
select()
select<TResult>(selector): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
selector | (element, index) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.select
selectMany()
Call Signature
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
Type Parameters
Parameters
| Parameter | Type |
|---|
collectionSelector | (element, index) => IEnumerable<TOther> |
Returns
IEnumerable<TOther>
Inherited from
Collection.selectMany
Call Signature
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TCollection |
TResult |
Parameters
| Parameter | Type |
|---|
collectionSelector | (element, index) => IEnumerable<TCollection> |
resultSelector | (outer, inner) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.selectMany
Call Signature
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
Type Parameters
Parameters
| Parameter | Type |
|---|
collectionSelector | (element, index) => TOther[] |
Returns
IEnumerable<TOther>
Inherited from
Collection.selectMany
Call Signature
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TCollection |
TResult |
Parameters
| Parameter | Type |
|---|
collectionSelector | (element, index) => TCollection[] |
resultSelector | (outer, inner) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.selectMany
Call Signature
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
Type Parameters
Parameters
| Parameter | Type |
|---|
collectionSelector | (element, index) => object |
Returns
IEnumerable<TOther>
Inherited from
Collection.selectMany
Call Signature
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TCollection |
TResult |
Parameters
| Parameter | Type |
|---|
collectionSelector | (element, index) => object |
resultSelector | (outer, inner) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.selectMany
sequenceEqual()
Call Signature
sequenceEqual(second): boolean;
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
boolean
Inherited from
Collection.sequenceEqual
Call Signature
sequenceEqual<TCompare>(second, compareSelector): boolean;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
compareSelector | (element) => TCompare |
Returns
boolean
Inherited from
Collection.sequenceEqual
Call Signature
sequenceEqual(second): boolean;
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
Returns
boolean
Inherited from
Collection.sequenceEqual
Call Signature
sequenceEqual<TCompare>(second, compareSelector): boolean;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
compareSelector | (element) => TCompare |
Returns
boolean
Inherited from
Collection.sequenceEqual
Call Signature
sequenceEqual(second): boolean;
Parameters
Returns
boolean
Inherited from
Collection.sequenceEqual
Call Signature
sequenceEqual<TCompare>(second, compareSelector): boolean;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | Swatch[] |
compareSelector | (element) => TCompare |
Returns
boolean
Inherited from
Collection.sequenceEqual
set()
Parameters
| Parameter | Type |
|---|
index | number |
value | Swatch |
Returns
void
Inherited from
Collection.set
setRange()
Parameters
Returns
void
Inherited from
Collection.setRange
share()
share(): IDisposableEnumerable<T>;
Returns
IDisposableEnumerable<T>
Inherited from
Collection.share
shuffle()
shuffle(): IEnumerable<T>;
Returns
IEnumerable<T>
Inherited from
Collection.shuffle
single()
single(predicate?): Swatch;
Parameters
| Parameter | Type |
|---|
predicate? | (element, index) => boolean |
Returns
Swatch
Inherited from
Collection.single
singleOrDefault()
singleOrDefault(predicate?, defaultValue?): Swatch;
Parameters
| Parameter | Type |
|---|
predicate? | (element, index) => boolean |
defaultValue? | Swatch |
Returns
Swatch
Inherited from
Collection.singleOrDefault
skip()
skip(count): IEnumerable<T>;
Parameters
Returns
IEnumerable<T>
Inherited from
Collection.skip
skipWhile()
skipWhile(predicate): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
predicate | (element, index) => boolean |
Returns
IEnumerable<T>
Inherited from
Collection.skipWhile
sum()
Parameters
| Parameter | Type |
|---|
selector? | (element) => number |
Returns
number
Inherited from
Collection.sum
take()
take(count): IEnumerable<T>;
Parameters
Returns
IEnumerable<T>
Inherited from
Collection.take
takeExceptLast()
takeExceptLast(count?): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
count? | number |
Returns
IEnumerable<T>
Inherited from
Collection.takeExceptLast
takeFromLast()
takeFromLast(count): IEnumerable<T>;
Parameters
Returns
IEnumerable<T>
Inherited from
Collection.takeFromLast
takeWhile()
takeWhile(predicate): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
predicate | (element, index) => boolean |
Returns
IEnumerable<T>
Inherited from
Collection.takeWhile
toArray()
Returns
Swatch[]
Inherited from
Collection.toArray
toDictionary()
Call Signature
toDictionary<TKey>(keySelector): IDictionary<TKey, any>;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
IDictionary<TKey, any>
Inherited from
Collection.toDictionary
Call Signature
toDictionary<TKey, TValue>(keySelector, elementSelector): IDictionary<TKey, TValue>;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TValue |
Returns
IDictionary<TKey, TValue>
Inherited from
Collection.toDictionary
Call Signature
toDictionary<TKey, TValue, TCompare>(
keySelector,
elementSelector,
compareSelector): IDictionary<TKey, TValue>;
Type Parameters
| Type Parameter |
|---|
TKey |
TValue |
TCompare |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TValue |
compareSelector | (key) => TCompare |
Returns
IDictionary<TKey, TValue>
Inherited from
Collection.toDictionary
toJoinedString()
Call Signature
toJoinedString(separator?): string;
Parameters
| Parameter | Type |
|---|
separator? | string |
Returns
string
Inherited from
Collection.toJoinedString
Call Signature
toJoinedString<TResult>(separator, selector): string;
Type Parameters
Parameters
| Parameter | Type |
|---|
separator | string |
selector | (element, index) => TResult |
Returns
string
Inherited from
Collection.toJoinedString
toJSONString()
Call Signature
toJSONString(replacer): string;
Parameters
| Parameter | Type |
|---|
replacer | (key, value) => any |
Returns
string
Inherited from
Collection.toJSONString
Call Signature
toJSONString(replacer): string;
Parameters
| Parameter | Type |
|---|
replacer | any[] |
Returns
string
Inherited from
Collection.toJSONString
Call Signature
toJSONString(replacer, space): string;
Parameters
| Parameter | Type |
|---|
replacer | (key, value) => any |
space | any |
Returns
string
Inherited from
Collection.toJSONString
Call Signature
toJSONString(replacer, space): string;
Parameters
| Parameter | Type |
|---|
replacer | any[] |
space | any |
Returns
string
Inherited from
Collection.toJSONString
toLookup()
Call Signature
toLookup<TKey>(keySelector): ILookup<TKey, T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
Returns
ILookup<TKey, T>
Inherited from
Collection.toLookup
Call Signature
toLookup<TKey, TElement>(keySelector, elementSelector): ILookup<TKey, TElement>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
Returns
ILookup<TKey, TElement>
Inherited from
Collection.toLookup
Call Signature
toLookup<TKey, TElement, TCompare>(
keySelector,
elementSelector,
compareSelector): ILookup<TKey, TElement>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
TCompare |
Parameters
| Parameter | Type |
|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
compareSelector | (key) => TCompare |
Returns
ILookup<TKey, TElement>
Inherited from
Collection.toLookup
toObject()
toObject(keySelector, elementSelector?): Object;
Parameters
| Parameter | Type |
|---|
keySelector | (element) => any |
elementSelector? | (element) => any |
Returns
Object
Inherited from
Collection.toObject
trace()
Call Signature
trace(message?): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
message? | string |
Returns
IEnumerable<T>
Inherited from
Collection.trace
Call Signature
trace<TValue>(message, selector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
message | string |
selector | (element) => TValue |
Returns
IEnumerable<T>
Inherited from
Collection.trace
traverseBreadthFirst()
Call Signature
traverseBreadthFirst(childrenSelector): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
childrenSelector | (element) => IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Collection.traverseBreadthFirst
Call Signature
traverseBreadthFirst<TResult>(childrenSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
childrenSelector | (element) => IEnumerable<T> |
resultSelector | (element, nestLevel) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.traverseBreadthFirst
traverseDepthFirst()
Call Signature
traverseDepthFirst<TResult>(childrenSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
childrenSelector | (element) => IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Collection.traverseDepthFirst
Call Signature
traverseDepthFirst<TResult>(childrenSelector, resultSelector?): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
childrenSelector | (element) => IEnumerable<T> |
resultSelector? | (element, nestLevel) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.traverseDepthFirst
union()
Call Signature
union(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
IEnumerable<T>
Inherited from
Collection.union
Call Signature
union<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.union
Call Signature
union(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Collection.union
Call Signature
union<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.union
Call Signature
union(second): IEnumerable<T>;
Parameters
Returns
IEnumerable<T>
Inherited from
Collection.union
Call Signature
union<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | Swatch[] |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.union
weightedSample()
weightedSample(weightSelector): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
weightSelector | (element) => number |
Returns
IEnumerable<T>
Inherited from
Collection.weightedSample
where()
where(predicate): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|
predicate | (element, index) => boolean |
Returns
IEnumerable<T>
Inherited from
Collection.where
write()
Call Signature
Parameters
| Parameter | Type |
|---|
separator? | string |
Returns
void
Inherited from
Collection.write
Call Signature
write<TResult>(separator, selector): void;
Type Parameters
Parameters
| Parameter | Type |
|---|
separator | string |
selector | (element) => TResult |
Returns
void
Inherited from
Collection.write
writeLine()
Call Signature
Returns
void
Inherited from
Collection.writeLine
Call Signature
writeLine<TResult>(selector): void;
Type Parameters
Parameters
| Parameter | Type |
|---|
selector | (element) => TResult |
Returns
void
Inherited from
Collection.writeLine
zip()
Call Signature
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | IEnumerable<T> |
resultSelector | (first, second, index) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.zip
Call Signature
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
resultSelector | (first, second, index) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.zip
Call Signature
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
second | Swatch[] |
resultSelector | (first, second, index) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Collection.zip
Call Signature
zip<TResult>(...params): IEnumerable<TResult>;
Type Parameters
Parameters
| Parameter | Type |
|---|
...params | any[] |
Returns
IEnumerable<TResult>
Inherited from
Collection.zip