|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
390 bytes
|
| Line | |
|---|
| 1 | import baseCreate from './_baseCreate.js';
|
|---|
| 2 | import extendOwn from './extendOwn.js';
|
|---|
| 3 |
|
|---|
| 4 | // Creates an object that inherits from the given prototype object.
|
|---|
| 5 | // If additional properties are provided then they will be added to the
|
|---|
| 6 | // created object.
|
|---|
| 7 | export default function create(prototype, props) {
|
|---|
| 8 | var result = baseCreate(prototype);
|
|---|
| 9 | if (props) extendOwn(result, props);
|
|---|
| 10 | return result;
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.