isBrowser

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

Check if the script is running inside a browser or not

Return

  1. -Boolean

    true if it’s in a browser, false if not

Example

import { isBrowser } from '@blackbyte/sugar/is'
if (isBrowser() {
  // do something
}

Todo

  • testsnormal