No Description

create.js 409B

12345678910111213
  1. var _baseCreate = require('./_baseCreate.js');
  2. var extendOwn = require('./extendOwn.js');
  3. // Creates an object that inherits from the given prototype object.
  4. // If additional properties are provided then they will be added to the
  5. // created object.
  6. function create(prototype, props) {
  7. var result = _baseCreate(prototype);
  8. if (props) extendOwn(result, props);
  9. return result;
  10. }
  11. module.exports = create;