Logs console errors if console is available, and we aren't running Jest.
Parameters:
Name | Type | Description |
---|---|---|
message | string | The message to log as an error. |
- Since
- 1.0.0
- Source
Returns:
- Type:
- void
Example
import { consoleError } from "@gravityforms/utils";
function Example() {
consoleError( 'Error from example' );
}