No Description

create.js 390B

1234567891011
  1. import baseCreate from './_baseCreate.js';
  2. import extendOwn from './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. export default function create(prototype, props) {
  7. var result = baseCreate(prototype);
  8. if (props) extendOwn(result, props);
  9. return result;
  10. }