|
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:
486 bytes
|
| Line | |
|---|
| 1 | var baseCreate = require('./_baseCreate'),
|
|---|
| 2 | getPrototype = require('./_getPrototype'),
|
|---|
| 3 | isPrototype = require('./_isPrototype');
|
|---|
| 4 |
|
|---|
| 5 | /**
|
|---|
| 6 | * Initializes an object clone.
|
|---|
| 7 | *
|
|---|
| 8 | * @private
|
|---|
| 9 | * @param {Object} object The object to clone.
|
|---|
| 10 | * @returns {Object} Returns the initialized clone.
|
|---|
| 11 | */
|
|---|
| 12 | function initCloneObject(object) {
|
|---|
| 13 | return (typeof object.constructor == 'function' && !isPrototype(object))
|
|---|
| 14 | ? baseCreate(getPrototype(object))
|
|---|
| 15 | : {};
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | module.exports = initCloneObject;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.