[](https://github.com/yjl9903/inheritable/actions/workflows/ci.yml)
npm install inheritable

``bashnpm i inheritable`
bashnpm i inheritable
`tsimport { inherit } from 'inheritable'
tsimport { inherit } from 'inheritable'
const o1 = { a: 1 }const o2 = inherit(o1, { b: 2 })
o1.a = 0console.log(o2.a) // 0``
MIT License © 2025 XLor