@datalayer/core
Version:
[](https://datalayer.io)
15 lines (14 loc) • 380 B
JavaScript
/*
* Copyright (c) 2023-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/
const NON_REMOTE_LOCATION = ['browser', 'local'];
/**
* Check whether the location is remote or not.
*
* @param location The location to test
* @returns The result
*/
export function isRuntimeRemote(location) {
return !NON_REMOTE_LOCATION.includes(location);
}