You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[`Bacon.fromESObservable(observable)`](#bacon-fromesobservable"Bacon.fromESObservable(observable : ESObservable[A]) : EventStream[A]") creates an EventStream from an
274
+
[ES Observable](https://github.com/tc39/proposal-observable). Input can be any
275
+
ES Observable implementation including RxJS and Kefir.
276
+
272
277
<aname="bacon-fromnodecallback-object"></a>
273
278
[`Bacon.fromNodeCallback(object, methodName [, args...])`](#bacon-fromnodecallback-object"Bacon.fromNodeCallback(object, methodName [, args...])") a variant of fromNodeCallback which calls the named method of a given object.
274
279
@@ -475,6 +480,13 @@ Use a shim if you need to support legacy browsers or platforms.
475
480
Like [`toPromise`](#observable-topromise), the global ES6 promise implementation will be used unless a promise
476
481
constructor is given.
477
482
483
+
<aname="observable-toesobservable"></a>
484
+
[`observable.toESObservable()`](#observable-toesobservable"observable.toESObservable() : ESObservable[A]") Aliased as `observable[Symbol.observable]()`. Returns an
485
+
[ES Observable](https://github.com/zenparsing/es-observable) containing the
486
+
events from Bacon observable. This allows Bacon observables to be used with
487
+
`Observable.from` and provides interoperability with other ES observable
488
+
implementations such as RxJS and Kefir.
489
+
478
490
<aname="observable-map"></a>
479
491
[`observable.map(f)`](#observable-map"observable.map(@ : Observable[A], f : A -> B) : Observable[B]") maps values using given function, returning a new
480
492
stream/property. Instead of a function, you can also provide a constant
@@ -1708,18 +1720,18 @@ Bacon.js provides ways to get some descriptive metadata about all Observables.
1708
1720
1709
1721
1710
1722
<aname="observable-deps"></a>
1711
-
[`observable.deps`](#observable-deps"observable.deps") Returns the an array of dependencies that the Observable has. For instance, for `a.map(function() {}).deps()`, would return `[a]`.
1712
-
This method returns the "visible" dependencies only, skipping internal details. This method is thus suitable for visualization tools.
1713
-
Internally, many combinator functions depend on other combinators to create intermediate Observables that the result will actually depend on.
1723
+
[`observable.deps`](#observable-deps"observable.deps") Returns the an array of dependencies that the Observable has. For instance, for `a.map(function() {}).deps()`, would return `[a]`.
1724
+
This method returns the "visible" dependencies only, skipping internal details. This method is thus suitable for visualization tools.
1725
+
Internally, many combinator functions depend on other combinators to create intermediate Observables that the result will actually depend on.
1714
1726
The [`deps`](#observable-deps) method will skip these internal dependencies.
1715
1727
1716
1728
<aname="observable-internaldeps"></a>
1717
-
[`observable.internalDeps`](#observable-internaldeps"observable.internalDeps") Returns the true dependencies of the observable, including the intermediate "hidden" Observables.
1729
+
[`observable.internalDeps`](#observable-internaldeps"observable.internalDeps") Returns the true dependencies of the observable, including the intermediate "hidden" Observables.
1718
1730
This method is for Bacon.js internal purposes but could be useful for debugging/analysis tools as well.
1719
1731
1720
1732
<aname="observable-desc"></a>
1721
-
[`observable.desc()`](#observable-desc"observable.desc()") Contains a structured version of what [`toString`](#observable-tostring) returns.
1722
-
The structured description is an object that contains the fields `context`, `method` and `args`.
1733
+
[`observable.desc()`](#observable-desc"observable.desc()") Contains a structured version of what [`toString`](#observable-tostring) returns.
1734
+
The structured description is an object that contains the fields `context`, `method` and `args`.
1723
1735
For example, for `Bacon.fromArray([1,2,3]).desc` you'd get
Aliased as `observable[Symbol.observable]()`. Returns an
469
+
[ES Observable](https://github.com/zenparsing/es-observable) containing the
470
+
events from Bacon observable. This allows Bacon observables to be used with
471
+
`Observable.from` and provides interoperability with other ES observable
472
+
implementations such as RxJS and Kefir.
473
+
"""
474
+
461
475
doc.fn"observable.map(@ : Observable[A], f : A -> B) : Observable[B]", """
462
476
maps values using given function, returning a new
463
477
stream/property. Instead of a function, you can also provide a constant
@@ -1782,20 +1796,20 @@ doc.fn "observable.toString", """Returns a textual description of the Observable
1782
1796
1783
1797
"""
1784
1798
1785
-
doc.fn"observable.deps", """Returns the an array of dependencies that the Observable has. For instance, for `a.map(function() {}).deps()`, would return `[a]`.
1786
-
This method returns the "visible" dependencies only, skipping internal details. This method is thus suitable for visualization tools.
1787
-
Internally, many combinator functions depend on other combinators to create intermediate Observables that the result will actually depend on.
1799
+
doc.fn"observable.deps", """Returns the an array of dependencies that the Observable has. For instance, for `a.map(function() {}).deps()`, would return `[a]`.
1800
+
This method returns the "visible" dependencies only, skipping internal details. This method is thus suitable for visualization tools.
1801
+
Internally, many combinator functions depend on other combinators to create intermediate Observables that the result will actually depend on.
1788
1802
The `deps` method will skip these internal dependencies.
1789
1803
"""
1790
1804
1791
1805
doc.fn"observable.internalDeps", """
1792
-
Returns the true dependencies of the observable, including the intermediate "hidden" Observables.
1806
+
Returns the true dependencies of the observable, including the intermediate "hidden" Observables.
1793
1807
This method is for Bacon.js internal purposes but could be useful for debugging/analysis tools as well.
1794
1808
"""
1795
1809
1796
1810
doc.fn"observable.desc()", """
1797
-
Contains a structured version of what `toString` returns.
1798
-
The structured description is an object that contains the fields `context`, `method` and `args`.
1811
+
Contains a structured version of what `toString` returns.
1812
+
The structured description is an object that contains the fields `context`, `method` and `args`.
1799
1813
For example, for `Bacon.fromArray([1,2,3]).desc` you'd get
0 commit comments