• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
jonnybolt Avatar
Name:Unknown
Clan:Unknown
Member Since:Jul 2019
Last Seen:Mar 2021
Profiles:
    Following:2
    Followers:1
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies (10)
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • ejini战神
      • resolved a question on "Exclamation marks series #2: Remove all exclamation marks from the end of sentence" kata
      • 3 years ago

      This comment is hidden because it contains spoiler information about the solution

    • Custom User Avatar
      • David Gildour
      • commented on "Array to HTML table" kata
      • 5 years ago

      No prob, I'm glad I could help.

    • Custom User Avatar
      • David Gildour
      • commented on "Array to HTML table" kata
      • 5 years ago

      Well, in your function signature you are expecting a single array argument, so no wonder things aren't working the way they should. Calling toTable([["o"]], true, true) in your case gives:

      data == ["o"]
      header == false
      index == false
      

      calling toTable([["lorem", "ipsum"], ["dolor", "sit amet"]], true, true):

      data == ["lorem",  "ipsum"]
      header == ["dolor", "sit amet"]
      index == false
      

      You need to get rid of the square brackets in signature if you want this code to work.

    • Custom User Avatar
      • Blind4Basics
      • resolved an issue on "Array to HTML table" kata
      • 5 years ago

      Not a kata issue, yes. @jonnybolt: use the "question" flag, for this kind of things. The error comes from your code.

    • Custom User Avatar
      • David Gildour
      • commented on "Array to HTML table" kata
      • 5 years ago

      It seems like you are trying to use map on a non-array type, deducting from the fact that this exception raises inside a call to rowData.map. There is no scenario in which there are other arrays inside a single row of the table. To be perfectly sure, I would need to see your code.

    • Custom User Avatar
      • teekirol
      • commented on "Array to HTML table" kata
      • 5 years ago

      What error do you get?

    • Custom User Avatar
      • FArekkusu
      • commented on "Kata Beta Process" topic
      • 5 years ago

      You have to complete a kata, and then you'll be able to translate it to other languages.

    • Custom User Avatar
      • Chrono79
      • commented on "What's in a name?" javascript solution
      • 6 years ago

      This comment is hidden because it contains spoiler information about the solution

    • Custom User Avatar
      • user8436785
      • commented on "Array Mash" kata
      • 6 years ago

      Manual notification

    • Custom User Avatar
      • user8436785
      • commented on "Array Mash" kata
      • 6 years ago

      This comment is hidden because it contains spoiler information about the solution

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...