You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* if metadata is a fixed array, then it can more easily be destructured into class attributes saving file size
* avoid using the temporary variable `metadata` since it can be destructured directly
* if `updateMetadata` modifies directly `comments` and `loc`, there's no need to destructure twice
* since all calls to `getMetadata` had been standardised, it's much cleaner to have it as a constructor of a parent class and `updateMetadata` being a class function
* by using rest parameters on `updateMetadata` we don't have to build arrays manually.
* reordering the imports
* avoiding an extra iteration over all children
* using a reverse iterator instead of reversing the array
0 commit comments