Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View proshoumma's full-sized 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 June 22, 2017 21:06
Flatten out an array
/**
* 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 June 21, 2016 05:47 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
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"