Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

(JS-0049) Avoid square-bracket notation when accessing properties #6

Open
IntegerAlex opened this issue Jul 23, 2024 · 0 comments
Open

Comments

@IntegerAlex
Copy link
Owner

Description

In JavaScript, there are two ways to access the properties of an object: - dot-notation (object.property) ( Recommended ) - square-bracket notation (object["property"]) ( Bad Practice ) The dot notation is preferred because it is easier to read, less verbose, and works better with aggressive JavaScript minimizers.

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/IntegerAlex/user-info-logger/issue/JS-0049/occurrences/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant