index.js
function (id, callback) {
    var idIsArr = Array.isArray(id);

    if (!id || (idIsArr && id.length === 0)) {
      return _handleErr('Id required for id API call', callback);
    }

    // If an array of Id's was passed, generate a comma delimited string for
    // the query string.
    if (idIsArr) {
      id = id.join();
    }

    return this._request({
      api: 'gifs',
      query: {
        ids: id
      }
    }, callback);
  }
function (id, callback) {
    var idIsArr = Array.isArray(id);

    if (!id || (idIsArr && id.length === 0)) {
      return _handleErr('Id required for id API call', callback);
    }

    // If an array of Id's was passed, generate a comma delimited string for
    // the query string.
    if (idIsArr) {
      id = id.join();
    }

    return this._request({
      api: 'gifs',
      query: {
        ids: id
      }
    }, callback);
  }
function ( id , callback ) { var idIsArr = Array . isArray ( id ) ; if ( ! id || ( idIsArr && id . length === 0 ) ) { return _handleErr ( 'Id required for id API call' , callback ) ; } // If an array of Id's was passed, generate a comma delimited string for // the query string. if ( idIsArr ) { id = id . join ( ) ; } return this . _request ( { api : 'gifs' , query : { ids : id } } , callback ) ; }
Search all Giphy gifs for a single Id or an array of Id's

@param id {String} - Single Giphy gif string Id or array of string Id's
@param callback
Search all Giphy gifs for a single Id or an array of Id s