We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ead40 commit 449c51bCopy full SHA for 449c51b
javascript/ql/test/library-tests/Arrays/arrays.js
@@ -144,4 +144,16 @@
144
const element1 = arr.findLastIndex((item) => sink(item)); // NOT OK
145
sink(element1); // OK
146
}
147
+
148
+ { // Test for findLastIndex function
149
+ const list = ["source"];
150
+ const filtered = list.filter((item) => sink(item)); // NOT OK
151
+ sink(filtered); // OK
152
+ }
153
154
+ {
155
+ const arr = source();
156
+ const filtered = arr.filter((item) => sink(item)); // NOT OK
157
+ sink(filtered); // NOT OK
158
159
});
0 commit comments