h2non/apitance

View on GitHub
lib/world.js

Summary

Maintainability
A
0 mins
Test Coverage
const _ = require('lodash')

module.exports = World

function World() {
  this.buf = Object.create(null)
}

World.prototype.define = function (key, value) {
  this.buf[key] = value
  return this
}

World.prototype.extend = function (parent) {
  _.extend(parent, this.buf)
}