src/giphy.js
function extend(object, properties) {
  object = object || { };
  const anotherObject = properties || { };

  for (const key in anotherObject) {
    const val = anotherObject[key];

    if (val || (val === '')) {
      object[key] = val;
    }
  }
  return object;
}
function extend(object, properties) {
  object = object || { };
  const anotherObject = properties || { };

  for (const key in anotherObject) {
    const val = anotherObject[key];

    if (val || (val === '')) {
      object[key] = val;
    }
  }
  return object;
}
function extend ( object , properties ) { object = object || { } ; const anotherObject = properties || { } ; for ( const key in anotherObject ) { const val = anotherObject [ key ] ; if ( val || ( val === '' ) ) { object [ key ] = val ; } } return object ; }
utility method for extending an object definition
utility method for extending an object definition