We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c6fe94 commit 73de864Copy full SHA for 73de864
2 files changed
package.json
@@ -1,7 +1,7 @@
1
{
2
"type": "module",
3
"name": "@stackpress/lib",
4
- "version": "0.6.9",
+ "version": "0.6.10",
5
"license": "Apache-2.0",
6
"description": "Shared library used across stackpress projects",
7
"author": "Chris <chris@incept.asia>",
src/data/Set.ts
@@ -38,7 +38,7 @@ export default class DataSet<V = any> extends Set<V> {
38
*/
39
public findIndex(callback: DataSetFilter<V, this>) {
40
const entry = this.find(callback);
41
- return Array.isArray(entry) ? entry[0] : undefined;
+ return Array.isArray(entry) ? entry[0] : -1;
42
}
43
44
/**
0 commit comments