Checks if the current environment is a server (Node.js without window object).
Logs an error if the function is called outside of a Node.js environment.
isServer(): boolean
Returns boolean
True if the current environment is a server, otherwise false.
Checks if the current environment is a server (Node.js without window object). Logs an error if the function is called outside of a Node.js environment.