13 lines
369 B
JavaScript
13 lines
369 B
JavaScript
|
/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
|
||
|
import { Observable } from '../Observable';
|
||
|
export function scalar(value) {
|
||
|
var result = new Observable(function (subscriber) {
|
||
|
subscriber.next(value);
|
||
|
subscriber.complete();
|
||
|
});
|
||
|
result._isScalar = true;
|
||
|
result.value = value;
|
||
|
return result;
|
||
|
}
|
||
|
//# sourceMappingURL=scalar.js.map
|