create-proxy
a tool to add proxies to object, useful for trapping methods in object
Install
yarn add create-proxynpm i create-proxy -S
Usage
const target = {} {} c: 1 const pTarget = p // proxy:ap // proxy:bpc // 1
Example
- vuex-router-histroy trap router's methods(push、replace、go、back、forward) and create history log