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