Skip to content

Instantly share code, notes, and snippets.

@awellsndt
awellsndt / gist:9943852
Created April 2, 2014 21:45
List prototype additions
(function(){
function scan(thing){
var proto = thing.prototype,
keys = Object.keys(proto),
keyValuePairs = keys.map(function(key){
function deprecate(msg){
var err = new Error(),
stack = err.stack,
lines = stack.split('\n').slice(3)
console.log("Deprecated method "+msg+"\n"+ lines.join('\n'))
}