All Questions
Tagged with immutability javascript
4 questions
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 <...
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:
...
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:
...
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 ...