javascript - Splitting a map value -


i have map has data of type:

{4e237b32eca4a6103061abf7:"27.94904038727,-82.6213887207031,test again,"} 

i trying split value below code states split not valid command. suspect not seeing string.

          $.each(arrayremove, function (key, value) {                 var data = value.split(",");                 var mylatlng = new google.maps.latlng(data[i + 0], data[i + 1]);                 ... 

can cast or how should done?

in case value {4e237b32eca4a6103061abf7:"27.94904038727,-82.6213887207031,test again,"} object without method split. might need go deeper:

$.each(arrayremove, function (key, value) {      $.each(value, function (key, str) {             var data = str.split(",");             var mylatlng = new google.maps.latlng(str[i + 0], str[i + 1]); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -