Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 273 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 273 Bytes
import { shake } from '@object-shake/core'

const [proxy, getShaked] = shake({
  a: {
    b: { c: 1, d: 2 },
    e: 3
  },
  f: 4
})

proxy.a.b.c
console.log(getShaked()) // { a: { b: { c: 1 } } }

proxy.f
console.log(getShaked()) // { a: { b: { c: 1 } }, f: 4 }