I hereby claim:
- I am nhagen on github.
- I am nhagen (https://keybase.io/nhagen) on keybase.
- I have a public key ASBq0n5tlOT263WnjQOqQD7--GmLYw3AhR3e0ynWLowlRwo
To claim this, I am signing this object:
var a = ["sdfdf", "http://oooooolol"], | |
handleNetErr = function(e) { return e }; | |
Promise.all(fetch('sdfdsf').catch(handleNetErr), fetch('http://invalidurl').catch(handleNetErr)) | |
.then(function(sdf, invalid) { | |
console.log(sdf, invalid) // [Response, TypeError] | |
}) | |
.catch(function(err) { | |
console.log(err); | |
}) |
export default function(initialState, handlers) { | |
return function(state = initialState, action) { | |
const handler = handlers[action.type]; | |
return typeof hander === 'function' ? handler(state, action) : state; | |
} | |
} |
I hereby claim:
To claim this, I am signing this object: