code: function appendExtension (obj, extension) {
    if (!obj.extensions) {
      obj.extensions = []
    }
  
    if (obj.extensions.indexOf(extension) === -1) {
      obj.extensions.push(extension)
    }
  }
docs: Append an extension to an object.