You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: js_object.rb
    path of file: ./repos/nii/tools/nii-cldr/lib/nii/cldr
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Nii::CLDR
  # Custom Hash wrapper to allow repeat keys in the JSON payload.
  class JSObject
    extend Forwardable
    attr_r
    
    def initialize(data = {}) = @data = data

    def []=(key, value)
      value      = combine(@data[key], value) if @data.include? key
      @data[key] = value
    end

    def to_h(data = @data)
      case data
      when Array    then data.map { |e| to_h(e) }
      when Hash     then data.transform_values { |e| to_h(e) }
      when JSObject then data.to_h
      else data
      end
    end