BlueGit

timfa frameworkv3

array.removeAt

timfa Tim · pushed by timfa

Authored 2022-10-18 · 4 years ago

Hash
41478a58d6d58b8dbb8ca47db2951822bb6d95a2
Parent
a8a9a632
1 file changed +8 −0
framework/extensions/extentions.js +8 −0
@@ -16,6 +16,14 @@ Array.prototype.remove = function(element)
16 16 }
17 17 }
18 18
19 Array.prototype.removeAt = function(index)
20 {
21 if (index > -1)
22 {
23 this.splice(index, 1);
24 }
25 }
26
19 27 Array.prototype.contains = function(element)
20 28 {
21 29 var index = this.indexOf(element);
@@ -16,6 +16,14 @@ Array.prototype.remove = function(element)
16 }
16 }
17}
17}
18
18
19Array.prototype.removeAt = function(index)
20{
21 if (index > -1)
22 {
23 this.splice(index, 1);
24 }
25}
26
19Array.prototype.contains = function(element)
27Array.prototype.contains = function(element)
20{
28{
21 var index = this.indexOf(element);
29 var index = this.indexOf(element);