Gutenberg attributes to console

Log attributes to console using the following:

wp.data.select( 'core/block-editor' ).getSelectedBlock().attributes;

Source: https://notlaura.com/log-gutenberg-blocks-attributes-to-console/