src/CaptionLinks.js
/**
   * Turns the caption links into an object
   * @returns {Object<string, string>} The object with the `languageCode` keys and the `baseUrl` values
   */
Turns the caption links into an object
@returns {Object} The object with the `languageCode` keys and the `baseUrl` values
Turns the caption links into an object @returns { Object } The object with the ` languageCode ` keys and the ` baseUrl ` values
toObject() {
    const result = [];
    for (let i = 0; i < this.links.length; i++) {
      const { baseUrl, languageCode } = this.links[i];
      result[languageCode] = baseUrl;
    }
    return result;
  }
toObject ( ) { const result = [ ] ; for ( let i = 0 ; i < this . links . length ; i ++ ) { const { baseUrl , languageCode } = this . links [ i ] ; result [ languageCode ] = baseUrl ; } return result ; }
Turns the caption links into an object
 @returns {Object<string, string>} The object with the `languageCode` keys and the `baseUrl` values
Turns the caption links into an object @returns { Object<string string > } The object with the ` languageCode ` keys and the ` baseUrl ` values