Skip to content

Commit 13195a0

Browse files
committed
fix
1 parent 216665e commit 13195a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "array-view",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Create array views for easy data manipulation, select elements using Python-like slice notation, enable efficient selection of elements using index lists and boolean masks.",
55
"license": "MIT",
66
"repository": {

src/views.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class ArrayView<T> implements ArrayViewInterface<T> {
214214
* @protected
215215
*/
216216
protected convertIndex(i: number): number {
217-
return normalizeIndex(i, this.source.length);
217+
return normalizeIndex(i, this.loc.length);
218218
}
219219
}
220220

0 commit comments

Comments
 (0)