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 11 occurrences of this issue in the repository.
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 11 occurrences of this issue in the repository.
See all occurrences on DeepSource → app.deepsource.com/gh/nearbeach/NearBeach/issue/JS-0049/occurrences/