@webreflection/utils
v0.1.1
Published
A collection of utility functions
Readme
@webreflection/utils
Social Media Photo by benjamin lehman on Unsplash
A collection of utility functions.
// example: a shim based on ArrayBuffer if native is `false`
import { SharedArrayBuffer, native } from 'https://esm.run/@webreflection/utils/shared-array-buffer';
// example: self bound Promise.withResolvers()
import withResolvers from 'https://esm.run/@webreflection/utils/with-resolvers';
const { promise, resolve, reject } = withResolvers();