beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: Add forEach to local copy of pythonic.js
2022-05-25, Edouard Tisserant
5f417d3c2d03
Parents
32eaba9cf30e
Children
0d5bb9038e5b
SVGHMI: Add forEach to local copy of pythonic.js
1 files changed, 6 insertions(+), 0 deletions(-)
+6
-0
svghmi/pythonic.js
--- a/svghmi/pythonic.js Wed May 11 12:12:16 2022 +0200
+++ b/svghmi/pythonic.js Wed May 25 09:51:22 2022 +0200
@@ -37,6 +37,12 @@
}
}
+ forEach(callback) {
+ for (const element of this) {
+ callback(element);
+ }
+ }
+
map(callback) {
const result = [];
for (const element of this) {