code: function deepClone ( value ) {
          var result;
      
          if ( $B.isObject(value) || $B.isArray(value) ) {
              result = ( $B.isArray(value) )? [] : {};
      
              for ( var key in value ) {
                  result[key] = deepClone( value[key] );
              }
          } else {
              result = value;
          }
      
          return result;
      }
docs: deep clone (object, array)