Rudimentary platform detection for TypeScript
and PHP
.
For general use cases, please make use of feature detection tools like Modernizr
and polyfills like those in Babel
.
Should only be used as a last resort for platform specific implementation bugs.