function deepClone(obj) {
  if ((0, _typeof2.default)(obj) === 'object') {
    return JSON.parse(JSON.stringify(obj));
  }

  return obj;
}
Perform deep clone of an object.
WARNING! Only clones JSON properties. Will cause error when `obj` contains a function, Date, etc.

@param {Object} obj An object that will be cloned
@return {Object}