File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " servable" ,
3
- "version" : " 0.3.2 " ,
3
+ "version" : " 0.3.3 " ,
4
4
"description" : " From scratch observable" ,
5
5
"main" : " lib/index.js" ,
6
6
"jsnext:main" : " src/index.js" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { onSubscriptionsComplete } from '../utilities/onSubscriptionsComplete';
3
3
4
4
const nullHash = void ( 0 ) ;
5
5
6
- export const combine = function ( sources$ , combineCallback = ( ( ...args ) => [ ...args ] ) ) {
6
+ const argsCallback = function ( ) { return Array . from ( arguments ) ; }
7
+ export const combine = function ( sources$ , combineCallback = argsCallback ) {
7
8
return new Observable ( function ( { next, error, complete } ) {
8
9
let subscriptions = [ ] ;
9
10
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ const startIndex = {
6
6
indexAt : - 1 ,
7
7
} ;
8
8
9
- export const zip = function ( sources$ , combineCallback = ( ( ...args ) => [ ...args ] ) ) {
9
+ const argsCallback = function ( ) { return Array . from ( arguments ) ; }
10
+ export const zip = function ( sources$ , combineCallback = argsCallback ) {
10
11
return new Observable ( function ( { next, error, complete } ) {
11
12
let subscriptions = [ ] ;
12
13
You can’t perform that action at this time.
0 commit comments