made with esnextbin
Created
May 26, 2016 17:37
-
-
Save briancavalier/a765e2d60921f344c978825aeae5516c to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sliders</title> | |
</head> | |
<body> | |
<div id="app"> | |
</body> | |
</html> |
This file contains 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
const most = require('most'); | |
const stream = most.just(Array(200000)); | |
let dest = []; | |
stream.forEach(bigArray => | |
dest.push.apply(dest, bigArray) | |
).catch(e => console.error(e.stack)); |
This file contains 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
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"most": "0.19.6" | |
} | |
} |
This file contains 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
'use strict'; | |
var most = require('most'); | |
var stream = most.just(Array(200000)); | |
var dest = []; | |
stream.forEach(function (bigArray) { | |
return dest.push.apply(dest, bigArray); | |
}).catch(function (e) { | |
return console.error(e.stack); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment