This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You probobly don't need a helper library for Promise/Async after all | |
const seedValues = [Promise.resolve(777), Promise.resolve(888)]; | |
// reduce | |
// Promise based | |
seedValues | |
.reduce((accumulator, currentValue) => | |
accumulator.then(v => currentValue.then(cv => v + cv)) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
var duringErrorTrack = false; | |
var ua = 'UA-XXXXXX-X' | |
// don't break old browsers | |
if (!window.addEventListener) { | |
return; | |
} |
NewerOlder