Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Dec 15, 2024
1 parent 76fbc26 commit 48a823d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array/groupBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function groupBy<T, K extends PropertyKey>(arr: readonly T[], getKeyFromI
const item = arr[i];
const key = getKeyFromItem(item);

if (!Object.prototype.hasOwnProperty.call(result, key) || result[key] == null) {
if (!Object.hasOwn(result, key) || result[key] == null) {
result[key] = [];
}

Expand Down

0 comments on commit 48a823d

Please sign in to comment.