Skip to main content

NumberStream

:NumberStream : DataStream

Simple scramjet stream that by default contains numbers or other containing with valueOf method. The streams provides simple methods like sum, average. It derives from DataStream so it's still fully supporting all map, reduce etc.

Kind: static class Extends: DataStream

new NumberStream(options)

Creates an instance of NumberStream.

ParamType
optionsNumberStreamOptions

numberStream.sum() : Promise.<number> | any ⇄

Calculates the sum of all items in the stream.

Kind: instance method of NumberStream

numberStream.avg() : Promise.<number> | any ⇄

Calculates the sum of all items in the stream.

Kind: instance method of NumberStream

Was it helpful?

Didn't find information needed?

Join our Scramjet Community on Discord, where you can get help from our engineers directly.