scripts/build.js
function appendExtension (obj, extension) {
  if (!obj.extensions) {
    obj.extensions = []
  }

  if (obj.extensions.indexOf(extension) === -1) {
    obj.extensions.push(extension)
  }
}
function appendExtension (obj, extension) {
  if (!obj.extensions) {
    obj.extensions = []
  }

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