export function getOrSetEmptyObject ( factoryModel ) { if ( ! factoryModel ) { return undefined ; } if ( ! factoryModel . emptyObject ) { factoryModel . emptyObject = new factoryModel ( ) ; } return factoryModel . emptyObject ; }