Skip to content

Commit 73de864

Browse files
committed
version bump
1 parent 4c6fe94 commit 73de864

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"name": "@stackpress/lib",
4-
"version": "0.6.9",
4+
"version": "0.6.10",
55
"license": "Apache-2.0",
66
"description": "Shared library used across stackpress projects",
77
"author": "Chris <chris@incept.asia>",

src/data/Set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class DataSet<V = any> extends Set<V> {
3838
*/
3939
public findIndex(callback: DataSetFilter<V, this>) {
4040
const entry = this.find(callback);
41-
return Array.isArray(entry) ? entry[0] : undefined;
41+
return Array.isArray(entry) ? entry[0] : -1;
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)