All Questions
4 questions
0votes
2answers
190views
Convert HTML input string to JavaScript Array literal
I am trying to accept JavaScript array literals in an HTML text input. The problem is that HTML text inputs are captured as strings, such that an input of ...
3votes
1answer
81views
Packet Assembler
I found a challenge on /r/dailyprogrammer that I figured seemed fun to solve: a packet assembler. I solved it, but the feedback on that subreddit is lacking, which is why I turn to you. Each input ...
4votes
2answers
115views
Pattern finding function for years between 1998 and 2017 with several test cases
Pattern matching for years, I need to be able to return all years from a string. When there is a dash "-" I need to return all numbers between. For example, '2004-2006' should return an array of ...
5votes
1answer
1kviews
Is this a good algorithm to unflat js objects?
I am dealing with a scenario where I get data in the following form: ...