For those unfamiliar with JS: subValue (the first argument in the forEach callback) is the value contained at arr[index].

  • @orclev
    link
    611 months ago

    Entire block could literally be replaced with arr[index] = self.cleanupMetadata(subValue).

      • @orclev
        link
        911 months ago

        Figuratively the block could be replaced with a roll of duct tape and some chewing gum.