1.1.2 • Published 2 years ago

xprezzo-mixin v1.1.2

Weekly downloads
8
License
MIT
Repository
github
Last release
2 years ago

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