xprezzo-mixin

Implementation of setting the prototype of an instianted object

Usage no npm install needed!

<script type="module">
  import xprezzoMixin from 'https://cdn.skypack.dev/xprezzo-mixin';
</script>

README

xprezzo-mixin

An implementation of setting the prototype of an instianted object.

usage

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

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

People

Xprezzo and related projects are maintained by Ben Ajenoui and sponsored by SEO Hero.

License

MIT