This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof Object.prototype.except !== 'function'){ | |
Object.prototype.except = function(){ | |
for(var i = 0, j = arguments.length; i < j; i++){ | |
if(this.hasOwnProperty(arguments[i])){ | |
delete this[arguments[i]]; | |
} | |
} | |
return this; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!Object.prototype.slice){ | |
Object.prototype.slice = function(){ | |
var returnObj = {}; | |
for(var i = 0, j = arguments.length; i < j; i++){ | |
if(this.hasOwnProperty(arguments[i])){ | |
returnObj[arguments[i]] = this[arguments[i]]; | |
} | |
} | |
return returnObj; | |
} |
OlderNewer