Deprecate utility tag

This commit is contained in:
Angelos Chalaris
2020-04-16 23:07:33 +03:00
parent 5e42f0aaa4
commit e31aea403d
60 changed files with 118 additions and 117 deletions

View File

@ -1,6 +1,6 @@
---
title: isBrowser
tags: utility,browser,intermediate
tags: browser,intermediate
---
Determines if the current runtime environment is a browser so that front-end modules can run on the server (Node) without throwing errors.
@ -16,4 +16,4 @@ const isBrowser = () => ![typeof window, typeof document].includes('undefined');
```js
isBrowser(); // true (browser)
isBrowser(); // false (Node)
```
```