isJavaScript top-level constant

bool const isJavaScript

True, if the code is running in JavaScript.

Implementation

const bool isJavaScript = identical(1, 1.0);