corrade-nucleus-nucleons – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /*************************************************************************/ |
2 | /* Copyright (C) 2017 Wizardry and Steamworks - License: GNU GPLv3 */ |
||
3 | /*************************************************************************/ |
||
4 | if(!Array.prototype.product) { |
||
5 | Array.prototype.product=function(b) { |
||
6 | var a = this; |
||
7 | return $.map(Array(Math.max(this.length, a.length)), function(e, i) { |
||
8 | var o = {}; |
||
9 | o[a[i]] = b[i]; |
||
10 | return o; |
||
11 | }); |
||
12 | }; |
||
13 | } |
||
14 | $.extend({ |
||
15 | product: function(a, b) { |
||
16 | return $.map(Array(Math.max(this.length, a.length)), function(e, i) { |
||
17 | var o = {}; |
||
18 | o[a[i]] = b[i]; |
||
19 | return o; |
||
20 | }); |
||
21 | } |
||
22 | }); |
||
23 | |||
24 | /*************************************************************************/ |
||
25 | /* Copyright (C) 2017 Wizardry and Steamworks - License: GNU GPLv3 */ |
||
26 | /*************************************************************************/ |
||
27 | if(!Array.prototype.stride) { |
||
28 | Array.prototype.stride=function(s) { |
||
29 | return this.filter(function(e, i) { |
||
30 | return i % s === 0; |
||
31 | }); |
||
32 | }; |
||
33 | } |
||
34 | $.extend({ |
||
35 | stride: function(a, s) { |
||
36 | return a.filter(function(e, i) { |
||
37 | return i % s === 0; |
||
38 | }); |
||
39 | } |
||
40 | }); |
||
41 |