Skip to content

Commit

Permalink
updated: improve the node check
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Dec 1, 2023
1 parent ed86359 commit d332ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ export function isNil(value) {
* @returns {boolean} true if the runtime is node
*/
export function isNode() {
return typeof process !== 'undefined'
return typeof globalThis.process !== 'undefined'
}

0 comments on commit d332ebd

Please sign in to comment.