lib/index.js
function removeSingleArrays(obj) {
  // Traverse all the elements of the object
  traverse(obj).forEach(function traversing(value) {
    // As the XML parser returns single fields as arrays.
    if (value instanceof Array && value.length === 1) {
      this.update(value[0]);
    }
  });
}
function removeSingleArrays(obj) {
  // Traverse all the elements of the object
  traverse(obj).forEach(function traversing(value) {
    // As the XML parser returns single fields as arrays.
    if (value instanceof Array && value.length === 1) {
      this.update(value[0]);
    }
  });
}
function removeSingleArrays ( obj ) { // Traverse all the elements of the object traverse ( obj ) . forEach ( function traversing ( value ) { // As the XML parser returns single fields as arrays. if ( value instanceof Array && value . length === 1 ) { this . update ( value [ 0 ] ) ; } } ) ; }
Removes all the arrays with single elements with a string value.
@param {object} o is the object to be traversed.
Removes all the arrays with single elements with a string value .