Locates the global scope for a browser or browser-like environment. If neither window nor self is defined by the environment, the same object will be returned on each invocation.
window
self
@aws-sdk/util-locate-window