Skip to content

Commit

Permalink
core: frontend: cosmos: Simplify Array.first
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Mar 26, 2024
1 parent b9454c6 commit 37f2a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/frontend/src/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ declare global {

// eslint-disable-next-line
Array.prototype.first = function<T> (this: T[]): T | undefined {
return this.isEmpty() ? undefined : this[0]
return this[0]
}

// eslint-disable-next-line
Expand Down

0 comments on commit 37f2a76

Please sign in to comment.