vue-qs / createRuntimeEnvironment
Function: createRuntimeEnvironment()
createRuntimeEnvironment():
RuntimeEnvironment
Defined in: utils/core-helpers.ts:34
Creates a runtime environment object with safe property access
Returns
Runtime environment information
Example
ts
const env = createRuntimeEnvironment();
if (env.isBrowser && env.windowObject) {
// Safe to use window
console.log(env.windowObject.location.href);
}