1 | static S jsJoinHack() {
|
2 | ret hjavascript([=[ |
3 | Object.prototype.join = function(glue, separator) {
|
4 | var object = this; |
5 | |
6 | if (glue == undefined) |
7 | glue = '='; |
8 | |
9 | if (separator == undefined) |
10 | separator = ','; |
11 | |
12 | return $.map(Object.getOwnPropertyNames(object), function(k) { return [k, object[k]].join(glue) }).join(separator);
|
13 | } |
14 | ]=]); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1009163 |
| Snippet name: | jsJoinHack - enable object.join() |
| Eternal ID of this version: | #1009163/4 |
| Text MD5: | 6f68d6585ca418b913c5938395d14631 |
| Author: | stefan |
| Category: | javax / internet |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-07-10 19:55:18 |
| Source code size: | 360 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 663 / 691 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |