artdaq_node_server  v1_00_08
 All Classes Namespaces Files Variables Pages
_initCloneObject.js
1 var baseCreate = require('./_baseCreate'),
2  getPrototype = require('./_getPrototype'),
3  isPrototype = require('./_isPrototype');
4 
12 function initCloneObject(object) {
13  return (typeof object.constructor == 'function' && !isPrototype(object))
14  ? baseCreate(getPrototype(object))
15  : {};
16 }
17 
18 module.exports = initCloneObject;