Skip to content

Conversation

@david-a-wheeler
Copy link
Contributor

While JavaScript allows global properties on Strings to be added, it's not necessarily a good idea, as those are global (and could interfere with other things).

To reduce the risk of future problems, use a created function instead, to avoid conflicts.

This also adds a myAssert and improves internal comments about indexing as related changes.

While JavaScript *allows* global properties on Strings to
be added, it's not necessarily a good idea, as those are global
(and could interfere with other things).

To reduce the risk of future problems, use a created function instead,
to avoid conflicts.

This also adds a myAssert and improves internal comments about
indexing as related changes.

Signed-off-by: David A. Wheeler <[email protected]>
@david-a-wheeler david-a-wheeler merged commit 72a9c54 into main Feb 6, 2025
4 checks passed
@david-a-wheeler david-a-wheeler deleted the refactor_format branch February 6, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants