Created
August 12, 2010 15:40
-
-
Save AlyxRen/521167 to your computer and use it in GitHub Desktop.
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
"use strict" | |
extend= (inp...)-> | |
output= {} | |
for val1 in inp | |
for key2,val2 of val1 | |
output[key2] = val2 | |
output |
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
(function() { | |
var extend; | |
var __slice = Array.prototype.slice, __hasProp = Object.prototype.hasOwnProperty; | |
"use strict"; | |
extend = function() { | |
var _a, _b, _c, _d, inp, key2, output, val1, val2; | |
inp = __slice.call(arguments, 0); | |
output = {}; | |
_b = inp; | |
for (_a = 0, _c = _b.length; _a < _c; _a++) { | |
val1 = _b[_a]; | |
_d = val1; | |
for (key2 in _d) { | |
if (!__hasProp.call(_d, key2)) continue; | |
val2 = _d[key2]; | |
output[key2] = val2; | |
} | |
} | |
return output; | |
}; | |
})(); |
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
(function(__slice,__hasprop,extend) { | |
"use strict"; | |
extend = function() { | |
var _a, _b, _c, _d, inp, key2, output, val1, val2; | |
inp = __slice.call(arguments, 0); | |
output = {}; | |
_b = inp; | |
for (_a = 0, _c = _b.length; _a < _c; _a++) { | |
val1 = _b[_a]; | |
_d = val1; | |
for (key2 in _d) { | |
if (!__hasProp.call(_d, key2)) continue; | |
val2 = _d[key2]; | |
output[key2] = val2; | |
} | |
} | |
return output; | |
}; | |
})(Array.prototype.slice,Object.prototype.hasOwnProperty); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment