makeDestructurable 
オブジェクトと配列に対して同時に同型に分割可能な構造を作成します。詳細については、このブログを参照してください。
使い方 
TypeScriptの例
ts
import { makeDestructurable } from '@vueuse/core'
const foo = { name: 'foo' }
const bar = 1024
const obj = makeDestructurable(
  { foo, bar } as const,
  [foo, bar] as const,
)js
import { makeDestructurable } from '@vueuse/core'
const foo = { name: 'foo' }
const bar = 1024
const obj = makeDestructurable({ foo, bar }, [foo, bar])使い方
ts
let { foo, bar } = obj
let [foo, bar] = obj型定義 
typescript
export declare function makeDestructurable<
  T extends Record<string, unknown>,
  A extends readonly any[],
>(obj: T, arr: A): T & A