How to know if environment is prod or dev?

Hi,

I want to run some code in production only. How can I find if Ionic 2 rc0 application is in production or dev mode?

-Thanks

in this is.regards.

It seems that is only available during the build process. How do you figure it out at runtime in the application?