Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove redundant bounds check #4247

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Johan-Mi
Copy link

Resolves

This does not resolve any issue.

Proposed Changes

This pull request removes a redundant bounds check in letterOf.

Reason for Changes

Performing this bounds check ourselves is redundant since String.prototype.charAt already does it for us.

Test Coverage

I have not added any tests to cover this change but I have checked the ECMAScript language specification to ensure that the change is sound: https://262.ecma-international.org/14.0/#sec-string.prototype.charat

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant