Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Provash Shoumma proshoumma

💭
I may be slow to respond.
View GitHub Profile
@proshoumma
proshoumma / flattenArray.js
Last active Jun 22, 2017
Flatten out an array
View flattenArray.js
/**
* flatten out an array
* @param {Array} input
* @param {Array} [output=[]]
* @return {Array}
*/
const flatten = (input, output = []) => {
// current index
let index = output.length;
@proshoumma
proshoumma / webpack.config.js
Created Jun 21, 2016 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
View webpack.config.js
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"