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
If promise returns array, it should pass every element of this array to different callback argument.
e.g.
functionthunk(a,b){returnfunction(cb){if(a===b){returncb(newError('a === b'))}cb(null,a,b,3)}}varthunk2promise=require('thunk2promise')varpromise2thunk=require('promise2thunk')varpromise=thunk2promise(thunk(123,456)).then(function(res){console.log(res)//=> [1, 2, 3]returnres})varthunk=promise2thunk(promise)// currently it pass [1, 2, 3] array as second argumentthunk(function(err,one,two,three){console.log(one,two,three)//=> 1, 2, 3})
The text was updated successfully, but these errors were encountered:
If promise returns array, it should pass every element of this array to different callback argument.
e.g.
The text was updated successfully, but these errors were encountered: