Skip to content

Instantly share code, notes, and snippets.

View gigafied's full-sized avatar

Taka Kojima gigafied

View GitHub Profile
var USE_LOCAL_JSON = true,
globals = {
settings : {
TEMPLATE_DEBUG : true
},
USE_LOCAL_JSON : USE_LOCAL_JSON,
STATIC_URL : "static/",
@gigafied
gigafied / README.md
Created February 10, 2012 06:12 — forked from dlo/README.md
Array.remove prototype function

This is a small snippet that gives Javascript arrays the (much-needed) ability to remove elements based on value. Example:

items = [1,2,3,3,4,4,5];
items.remove(3); // => [1,2,4,4,5]