cride
Version:
Create isomorphic destructurables.
25 lines (15 loc) • 515 B
Markdown
# cride
[](https://www.npmjs.com/package/cride)
Credits to [@antfu](https://github.com/antfu).
## Usage
```ts
import { cride } from "cride";
const foo = { name: "foo" };
const bar = 1024;
const obj = cride({ foo, bar }, [foo, bar]);
let { foo, bar } = obj;
let [foo, bar] = obj;
```
## License
[MIT](./LICENSE) License © 2022 [Anthony Fu](https://github.com/antfu)
[MIT](./LICENSE) License © 2022-2023 [Ray](https://github.com/so1ve)