Files
freeCodeCamp/client/utils/index.js
2021-04-22 11:36:56 +03:00

4 lines
86 B
JavaScript

exports.isBrowser = function isBrowser() {
return typeof window !== 'undefined';
};