code: 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;
  }
docs: Custom functions created for reactjs-components