models/meta.js
function formatProperties (properties) {
    const result = {}
    Object.keys(properties).forEach(key => {
      debug('formatProperties: key: ' + key)
      if (properties.hasOwnProperty(key)) {
        result[ key ] = _.clone(properties[ key ])
        result[ key ].type = properties[ key ].type.name
      }
    })
    return result
  }
function formatProperties (properties) {
    const result = {}
    Object.keys(properties).forEach(key => {
      debug('formatProperties: key: ' + key)
      if (properties.hasOwnProperty(key)) {
        result[ key ] = _.clone(properties[ key ])
        result[ key ].type = properties[ key ].type.name
      }
    })
    return result
  }
function formatProperties ( properties ) { const result = { } Object . keys ( properties ) . forEach ( key => { debug ( 'formatProperties: key: ' + key ) if ( properties . hasOwnProperty ( key ) ) { result [ key ] = _ . clone ( properties [ key ] ) result [ key ] . type = properties [ key ] . type . name } } ) return result }
Helper method for format the type of the properties
Helper method for format the type of the properties