deepCopy (anObject) {
    if(useDeepCopyFallback==true) {
      return (JSON.parse(JSON.stringify(anObject)));
    }

    return (cloneDeep (anObject));
  }
/**
   * We need to switch to using the immutable package. That way we
   * avoid really expensive deep copies through bad tricks like the
   * one below. Although it would be nice if we could route the calls
   * through this method so that the signature doesn't change.
   * 
   * @param {any} anObject
   */
We need to switch to using the immutable package. That way we
avoid really expensive deep copies through bad tricks like the
one below. Although it would be nice if we could route the calls
through this method so that the signature doesn't change.

@param {any} anObject
We need to switch to using the immutable package . That way we avoid really expensive deep copies through bad tricks like the one below . Although it would be nice if we could route the calls through this method so that the signature doesn ' t change . @param { any } anObject
deepCopy (anObject) {
    if(useDeepCopyFallback==true) {
      return (JSON.parse(JSON.stringify(anObject)));
    }
    return (cloneDeep (anObject));
  }
deepCopy ( anObject ) { if ( useDeepCopyFallback == true ) { return ( JSON . parse ( JSON . stringify ( anObject ) ) ) ; } return ( cloneDeep ( anObject ) ) ; }
We need to switch to using the immutable package.
We need to switch to using the immutable package .