function isEmptyDataObject( obj ) {
  for ( var name in obj ) {
    if ( name !== "toJSON" ) {
      return false;
    }
  }

  return true;
}
// order to make sure JSON.stringify does not expose internal metadata
order to make sure JSON.stringify does not expose internal metadata
order to make sure JSON . stringify does not expose internal metadata
function isEmptyDataObject( obj ) {
  for ( var name in obj ) {
    if ( name !== "toJSON" ) {
      return false;
    }
  }
  return true;
}
function isEmptyDataObject ( obj ) { for ( var name in obj ) { if ( name !== "toJSON" ) { return false ; } } return true ; }
order to make sure JSON.stringify does not expose internal metadata
order to make sure JSON . stringify does not expose internal metadata