Package detail

xprezzo-mixin

xprezzo22.5kMIT1.1.2

Implementation of setting the prototype of an instianted object

setprototypeof, mixin, xprezzo

readme

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