main.js
function (ent) {
    if (ent.constructor.name === 'Array') {
      serializeArray()
    } else {
      profile.default[ent.constructor.name] = ent
    }
  }
function (ent) {
    if (ent.constructor.name === 'Array') {
      serializeArray()
    } else {
      profile.default[ent.constructor.name] = ent
    }
  }
function ( ent ) { if ( ent . constructor . name === 'Array' ) { serializeArray ( ) } else { profile . default [ ent . constructor . name ] = ent } }
Separate this function into another utils library.
Separate this function into another utils library .