Top "Immutable.js" questions

Immutable.

Why does Immutable.js throw Invalid key path on Map.setIn()

I must be missing something here because the Docs make it out as if the below code should work just …

javascript immutable.js
Immutable.js: How to find an object in an array by specify property value

I have an array made by Immutable.js: var arr = Immutable.List.of( { id: 'id01', enable: true }, { id: 'id02…

javascript immutable.js
How to remove duplicates from an unordered Immutable.List()?

How would one remove duplicates from an unordered Immutable.List()? (without using toJS() or toArray()) e.g. Immutable.List.of("…

immutable.js
How to create a map of records from a javascript raw object with Immutable.js?

I'm new to immutable.js and I'd like to understand better how to use records starting from a raw JS …

javascript immutability immutable.js reviver-function
React performance: rendering big list with PureRenderMixin

I took a TodoList example to reflect my problem but obviously my real-world code is more complex. I have some …

javascript reactjs immutable.js
Immutablejs: One liner code to convert keys of a map into array?

From the docs: Map#keys I get the keys of a Map and loop through it to transform them into …

javascript immutable.js
ImmutableJS - update value in a List

I have a Map like this (in ImmutableJS): {arrayOfValues: [ {one: {inside: 'first in array'}}, {one: {inside: 'second in array'}} ]} And …

javascript reactjs immutable.js
How to get index based value from Set

I am looking to store a list of unique string (hence Set) and wanted to retrieve the value based on …

javascript immutable.js
Performance: Immutable.js Map vs List vs plain JS

Question Is there something wrong with my benchmark? How can Immutable.js find() be 8 times slower than array.find()? Ok, …

javascript immutable.js
Using PropTypes when immutable-js in react-js

I am using immutable-js and react-immutable-proptypes in React. // CommentBox.jsx getInitialState() { return { comments: Immutable.List.of( {author: 'Pete Hunt', text: …

javascript reactjs immutable.js