Posts by Thiago Miranda • 11 points
2 posts
-
1
votes1
answer190
viewsA: Round up JSON value
Use the JS function .toFixed(): The method toFixed() format a number using fixed point notation. Syntax: numObj.toFixed([digits]) Example: var num = 6.647; //O parâmetro da função é o número de…
-
0
votes2
answers114
viewsA: Selecting a Specific Value in Jquery Array
Good morning, A simple solution would be to iterate in this array of cities and create a new one, only with ES filtered cities. var cidadesES = new Array(); cidade.forEach(function(obj) { if (obj.uf…