xprezzo-mixin

1.1.2 • Public • Published

xprezzo-mixin

An implementation of setting the prototype of an instianted object.

usage

$ npm install --save xprezzo-mixin
const mixin = require('xprezzo-mixin')

let obj = {}
mixin(obj, {
  foo: function () {
    return 'bar'
  }
})
obj.foo() // bar

People

Xprezzo and related projects are maintained by Cloudgen Wong.

License

MIT

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i xprezzo-mixin

    Weekly Downloads

    5

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    2.79 kB

    Total Files

    5

    Last publish

    Collaborators

    • xprezzo