src/Model.js
function modelExport(m) {
  const result = _.mapValues(m.classes, _.head)
  result[m.__name] = m
  return result
}
function modelExport(m) {
  const result = _.mapValues(m.classes, _.head)
  result[m.__name] = m
  return result
}
function modelExport ( m ) { const result = _ . mapValues ( m . classes , _ . head ) result [ m . __name ] = m return result }
A helper to export a model and all its classes in a npm module.
A helper to export a model and all its classes in a npm module .