Skip to content

Commit e591a26

Browse files
authored
fix: replace Array.prototype.at to improve compatibility (#62)
1 parent 49216dd commit e591a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/composables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export function useUn<T = UnData, R = UnResponse<T>, D = UnData>(
202202
!isUnInstance(args[1 + argsPlaceholder])) ||
203203
args.length === 3 + argsPlaceholder
204204
)
205-
options = args.at(-1) || options;
205+
options = args[args.length - 1] || options;
206206

207207
const {
208208
shallow,

0 commit comments

Comments
 (0)