Logs console errors if console is available, and we aren't running Jest.

Parameters:
NameTypeDescription
messagestring

The message to log as an error.

Since
  • 1.0.0
Returns:
Type: 
void
Example
import { consoleError } from "@gravityforms/utils";

function Example() {
    consoleError( 'Error from example' );
}

Requires