is-env

is-env can determine the current JavaScript running environment, and now includes 'browser', 'react-native', 'nodejs'.