mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
22 lines
419 B
JavaScript
22 lines
419 B
JavaScript
const { isArray } = Array;
|
|
|
|
const { assign, create, defineProperties, defineProperty, entries } = Object;
|
|
|
|
const { all, resolve } = new Proxy(Promise, {
|
|
get: ($, name) => $[name].bind($),
|
|
});
|
|
|
|
const absoluteURL = (path, base = location.href) => new URL(path, base).href;
|
|
|
|
export {
|
|
isArray,
|
|
assign,
|
|
create,
|
|
defineProperties,
|
|
defineProperty,
|
|
entries,
|
|
all,
|
|
resolve,
|
|
absoluteURL,
|
|
};
|