@ulu/utils
Advanced tools
Comparing version 0.0.12 to 0.0.13
# Change Log | ||
## 0.0.13 | ||
- Browser > dom > isBrowser() Test whether script is executing in browser environment | ||
## 0.0.12 | ||
@@ -4,0 +8,0 @@ |
@@ -5,3 +5,12 @@ /** | ||
/** | ||
* Determine if the script is executing in a browser environment | ||
* @returns {Boolean} | ||
*/ | ||
export function isBrowser() { | ||
return typeof window !== "undefined" && typeof window.document !== "undefined"; | ||
} | ||
/** | ||
* Remove HTML elements from string | ||
@@ -8,0 +17,0 @@ * @param {String} html Source HTML |
{ | ||
"name": "@ulu/utils", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Low level utility library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,2 +5,7 @@ /** | ||
/** | ||
* Determine if the script is executing in a browser environment | ||
* @returns {Boolean} | ||
*/ | ||
export function isBrowser(): boolean; | ||
/** | ||
* Remove HTML elements from string | ||
@@ -7,0 +12,0 @@ * @param {String} html Source HTML |
Sorry, the diff of this file is not supported yet
41307
45
1079