Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
0 answers
34 views

Set values with keeping immutability in React FC

I'd like to know there's a better code than I did. interface AnswerProps{ itemId: string; value: Array<string> } This code works like checkbox. If <...
kyun's user avatar
  • 121
7 votes
1 answer
232 views

Quicksort in JavaScript assuming an immutable array

Update: further succinct versions below (inspired by Haskell) Quick sort in JS assuming an immutable array: ...
coder_bro's user avatar
  • 419
3 votes
1 answer
156 views

Non-persistent storage for key-value pairs

I got an interesting interview question related to JavaScript: In JavaScript please create a storing function called storingFn with the following characteristics: ...
lito's user avatar
  • 131
4 votes
1 answer
948 views

Functional linked list

I've been implementing functional linked lists in different languages, just as a learning exercise. I'm looking for feedback in general: code correctness, best practices, design patterns; everything ...
NPN328's user avatar
  • 771