Answers for "map.getIn gives whole data if prop missing in js"

0

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);
Posted by: Guest on September-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language