diff options
Diffstat (limited to '')
-rw-r--r-- | heimdall-frontend/source/qml/ArrayExtensions.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/heimdall-frontend/source/qml/ArrayExtensions.js b/heimdall-frontend/source/qml/ArrayExtensions.js new file mode 100644 index 0000000..d034a8f --- /dev/null +++ b/heimdall-frontend/source/qml/ArrayExtensions.js @@ -0,0 +1,3 @@ +Array.prototype.extend = function(other) { + other.forEach(function(item) { this.push(item) }, this); +}; |