Instance Methods
map
const sequence: Seq<string> = Seq.infinite().map(num => num.toString())type map = <U>(fn: (value: T, index: number) => U) => Seq<U>window
// Grab numbers in groups of 10.
const sequence: Seq<number[]> = Seq.infinite().window(10)// Gives: [0, 1, 2] -> [3, 4, 5] -> [6, 7, 8] -> [9, 10]
const sequence: Seq<number> = Seq.range(0, 10).window(3)type window = (size: number, allowPartialWindow = true) => Seq<T[]>pairwise
const sequence: Seq<[string, number]> = Seq.fromArray(["a", 1, "b", 2])type pairwise = () => Seq<[T, T]>isEmpty
tap
log
flat
flatMap
filter
concat
interleave
interpose
distinct
distinctBy
partitionBy
includes
find
reduce
chain
some
every
take
takeWhile
skip
skipWhile
nth
index
first
zip
zipWith
zip2
zip2With
toArray
forEach
sum
sumBy
average
averageBy
frequencies
groupBy
Last updated
Was this helpful?