Skip to content

Issues in the decrement and last emitted value #22

@davideas

Description

@davideas

It never decrements if we don't multiply the new value by result of positiveOrNegative():
Fix with this:

scan((acc: number, curr: number) => acc + params.increment * curr)

Also we must be sure last emitted value corresponds to the endValue
Fix with endWith() after takeWhile():

takeWhile(...),
// Make sure that last emitted value is end value
endWith(params.end)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions