rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

Behavior of fromEvents does not match documentation in case of > 1 argument

Open jbms opened this issue 2 years ago • 0 comments

Describe the bug

Documentation for fromEvents indicates that only the first argument to the listener is emitted: https://github.com/ReactiveX/rxjs/blob/47fa8d555754b18887baf15e22eb3dd91bf8bfea/src/internal/observable/fromEvent.ts#L288

However, the actual behavior is that if there is more than one argument, the list of arguments is emitted: https://github.com/ReactiveX/rxjs/blob/47fa8d555754b18887baf15e22eb3dd91bf8bfea/src/internal/observable/fromEvent.ts#L288

Expected behavior

n/a

Reproduction code

No response

Reproduction URL

No response

Version

47fa8d555754b18887baf15e22eb3dd91bf8bfea

Environment

No response

Additional context

No response

jbms avatar Jul 01 '22 20:07 jbms