Skip to content

Commit

Permalink
chore: update ts def of get
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Dec 28, 2022
1 parent 4c32f6a commit 7530772
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export default function get(entity: any, path: (string | number)[]) {
export default function get(
entity: any,
path: (string | number)[] | readonly (string | number)[],
) {
let current = entity;

for (let i = 0; i < path.length; i += 1) {
Expand Down

0 comments on commit 7530772

Please sign in to comment.