isEsm

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is

Check if the current module system the code runs on “esm” module system.

Return

  1. -Boolean

    true if the current system is esm

Example

import { isEsm } from '@blackbyte/sugar/is';
isEsm(); // => true

Todo

  • testsnormal