tmdb(method, argument) {
      return new Promise((resolve, reject) => {
         const callback = (error, reponse) => {
            if (error) {
               return reject(error);
            }
            resolve(reponse);
         };

         if (!argument) {
            this.tmdbLibrary[method](callback);
         } else {
            this.tmdbLibrary[method](argument, callback);
         }
      });
   }
/**
   * Wraps moviedb library to support Promises.
   * @param {String} method function name in the library
   * @param {Object} argument argument to function being called
   * @returns {Promise} succeeds if callback succeeds
   */
Wraps moviedb library to support Promises.
@param {String} method function name in the library
@param {Object} argument argument to function being called
@returns {Promise} succeeds if callback succeeds
Wraps moviedb library to support Promises . @param { String } method function name in the library @param { Object } argument argument to function being called @returns { Promise } succeeds if callback succeeds
tmdb(method, argument) {
      return new Promise((resolve, reject) => {
         const callback = (error, reponse) => {
            if (error) {
               return reject(error);
            }
            resolve(reponse);
         };
         if (!argument) {
            this.tmdbLibrary[method](callback);
         } else {
            this.tmdbLibrary[method](argument, callback);
         }
      });
   }
tmdb ( method , argument ) { return new Promise ( ( resolve , reject ) => { const callback = ( error , reponse ) => { if ( error ) { return reject ( error ) ; } resolve ( reponse ) ; } ; if ( ! argument ) { this . tmdbLibrary [ method ] ( callback ) ; } else { this . tmdbLibrary [ method ] ( argument , callback ) ; } } ) ; }
Wraps moviedb library to support Promises.
Wraps moviedb library to support Promises .