Skip to content

isDev

A constant which is true in dev mode (if a global __DEV__ variable is set and truthy).

Usage

js
import { isDev } from '@studiometa/js-toolkit/utils';

if (isDev) {
  console.log('We are in a development environment.');
}

MIT Licensed