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]
var USE_LOCAL_JSON = true, | |
globals = { | |
settings : { | |
TEMPLATE_DEBUG : true | |
}, | |
USE_LOCAL_JSON : USE_LOCAL_JSON, | |
STATIC_URL : "static/", |
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]