UNPKG

molstar

Version:

A comprehensive macromolecular library.

17 lines (16 loc) 472 B
/** * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> * @author David Sehnal <david.sehnal@gmail.com> */ export function ObjectKeys(o) { return Object.keys(o); } ; export function assertUnreachable(x) { throw new Error('unreachable'); } export function isPromiseLike(x) { return typeof (x === null || x === void 0 ? void 0 : x.then) === 'function'; }