Posts by Andrews Felipe • 76 points
2 posts
-
0
votes3
answers50
viewsA: How to declare a function that has calls with quantities of different parameters?
A more elegant solution input1.addEventListener("focus", function (){ inputPlaceFocus(input1, ph1); }); input2.addEventListener("focus", function (){ inputPlaceFocus(input2, ph2, olho); }); //…
-
6
votes4
answers823
viewsA: Transform String Array into Object Array
Follow a solution with regex const array = [ "TagFuncao:CN Evento:TODOS", "TagFuncao:DOC.AGRO.INDUS Evento:TODOS", ]; const nu_array = array.map((item) => { return { tagFuncao:…