Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map.getIn gives whole data if prop missing in js

var obj = Immutable.fromJS({
	categories: {
		1: 'a',
		2: 
	}
});
var output = obj.getIn(['categories', '2']);
alert(output);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #data #prop #missing #js
ADD COMMENT
Topic
Name
3+9 =