code: function appendExtensions (obj, extensions) {
    if (!extensions) {
      return
    }
  
    for (var i = 0; i < extensions.length; i++) {
      var extension = extensions[i]
  
      // add extension to the type entry
      appendExtension(obj, extension)
    }
  }
docs: Append extensions to an object.