# File lib/execjs/external_runtime.rb, line 165
      def which(command)
        Array(command).find do |name|
          name, args = name.split(/\s+/, 2)
          path = ExecJS.windows? ? which_windows(name) : which_unix(name)

          next unless path

          args ? "#{path} #{args}" : path
        end
      end