-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArray.js
55 lines (51 loc) · 1.71 KB
/
Array.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const Reeks = Array.prototype
Object.defineProperty(Reeks.constructor, 'naam', {
get: function () { return this.name },
set: function (value) { this.name = value }
})
Object.defineProperty(Reeks.constructor, 'argumenten', {
get: function () { return this.arguments },
set: function (value) { this.arguments = value }
})
Object.defineProperty(Reeks.constructor, 'aanroeper', {
get: function () { return this.caller },
set: function (value) { this.caller = value }
})
Reeks.constructor.brengAan = Reeks.constructor.apply
Reeks.constructor.verbind = Reeks.constructor.bind
Reeks.constructor.roepAan = Reeks.constructor.call
Reeks.constructor.naarDraad = Reeks.constructor.toString
Object.defineProperty(Reeks, 'lengte', {
get: function () { return this.length },
set: function (value) { this.length = value }
})
Reeks.aaneenschakelen = Reeks.concat
Reeks.kopieerVanbinnen = Reeks.copyWithin
Reeks.inschrijvingen = Reeks.entries
Reeks.elke = Reeks.every
Reeks.vul = Reeks.fill
Reeks.vind = Reeks.find
Reeks.vindIndex = Reeks.findIndex
Reeks.voorElke = Reeks.forEach
Reeks.van = Reeks.from
Reeks.omvat = Reeks.includes
Reeks.indexVan = Reeks.indexOf
Reeks.isReeks = Reeks.isArray
Reeks.samenvoegen = Reeks.join
Reeks.sleutels = Reeks.keys
Reeks.laatsteIndexVan = Reeks.lastIndexOf
Reeks.inKaartBrengen = Reeks.map
Reeks.knal = Reeks.pop
Reeks.duw = Reeks.push
Reeks.reduceer = Reeks.reduceer
Reeks.reduceerRechts = Reeks.reduceRight
Reeks.keerOm = Reeks.reverse
Reeks.verschuif = Reeks.shift
Reeks.snij = Reeks.slice
Reeks.enkele = Reeks.some
Reeks.sorteer = Reeks.sort
Reeks.splijt = Reeks.splice
Reeks.naarDraad = Reeks.toString
Reeks.onverschuif = Reeks.unshift
Reeks.waardeVan = Reeks.valueOf
export default Reeks