diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2016-11-08 11:09:13 +0100 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2016-11-10 09:32:04 +0000 |
commit | 2b8a9fc66309038dac21624293cf3b91d87165c3 (patch) | |
tree | de1ede83c5fe2a2cd29c97588272142c215e8d4f /tests/manual | |
parent | c5cfce8553d591418f4752b62ac26f8b37e70515 (diff) |
Add ECMAScript 6 Array find and findIndex methods
Change-Id: I318fa243ab68b8a714923ab816d62e8c544fca8c
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/v4/fun.4.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/v4/fun.4.js b/tests/manual/v4/fun.4.js index b130acccd3..277761ad09 100644 --- a/tests/manual/v4/fun.4.js +++ b/tests/manual/v4/fun.4.js @@ -15,4 +15,5 @@ print([10, 20, 30].filter(function (v,k,o) { return v >= 20 })); print([10,20,30].reduce(function(a,v,k,o) { return a + v })); print([10,20,30].reduceRight(function(a,v,k,o) { return a + v })); - +print([10, 20, 30].find(function (v,k,o) { return v >= 20 })); +print([10, 20, 30].findIndex(function (v,k,o) { return v >= 20 })); |