Getting bound of a map

I need to get the bounds of a map when I am clicking one the map. Bounds of the map (southwest and northeast corner ).
Thank You!

let bounds = map.getBounds();

Documentation: Documentation | Maps SDK Web JS v6