Skip to content

Instantly share code, notes, and snippets.

View ArupSen's full-sized avatar
🏠
Working from home

Arup Sen ArupSen

🏠
Working from home
View GitHub Profile
@ArupSen
ArupSen / util.js
Created November 1, 2012 22:24 — forked from pamelafox/util.js
JavaScript Utility Libraries (Scroll down!)
var ED = ED || {};
// Utility functions
ED.util = (function() {
// Data structure functions
function each(object, callback) {
if (object === null) return;
// challenge description
// sample input -
// sample output -
function coolFunction (input) {
var dataStruct = []; // or {}
var output = ""; // or 0
dataStruct = input.split(',');
output = dataStruct.join(' ');
return output;