Skip to content

document says that Observable has let operator as default but not in implementation #3337

@berlysia

Description

@berlysia

RxJS version:
v5.5, v6

Code to reproduce:
with v6.0.0-alpha.3:

require('rxjs/index').Observable.create().let(x => x);
require('rxjs/index').Observable.create().pipe(x => x);

in v5.5, replace 'rxjs/index' with 'rxjs/Observable'

Expected behavior:
same result

ref. doc/pipeable-operators.md

The let operator is now part of Observable as pipe and cannot be imported.

Actual behavior:

require('rxjs/index').Observable.create().let(x => x); // let is not a function
require('rxjs/index').Observable.create().pipe(x => x); // properly works

Which is correct, implementation or document?

Metadata

Metadata

Assignees

No one assigned

    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