src/Util/Util.js
function clone(object) {
  if (object === null || typeof object != "object") {
    return object;
  }
  const copy = object.constructor();
  for (const attr in object) {
    if (Object.prototype.hasOwnProperty.call(object, attr)) {
      copy[attr] = object[attr];
    }
  }

  return copy;
}
function clone(object) {
  if (object === null || typeof object != "object") {
    return object;
  }
  const copy = object.constructor();
  for (const attr in object) {
    if (Object.prototype.hasOwnProperty.call(object, attr)) {
      copy[attr] = object[attr];
    }
  }

  return copy;
}
function clone ( object ) { if ( object === null || typeof object != "object" ) { return object ; } const copy = object . constructor ( ) ; for ( const attr in object ) { if ( Object . prototype . hasOwnProperty . call ( object , attr ) ) { copy [ attr ] = object [ attr ] ; } } return copy ; }
Custom functions created for reactjs-components
Custom functions created for reactjs - components