Skip to content

Instantly share code, notes, and snippets.

@briancavalier
Created May 26, 2016 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briancavalier/a765e2d60921f344c978825aeae5516c to your computer and use it in GitHub Desktop.
Save briancavalier/a765e2d60921f344c978825aeae5516c to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Sliders</title>
</head>
<body>
<div id="app">
</body>
</html>
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));
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"most": "0.19.6"
}
}
'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