Most voted "underscore.js" questions
7 questions
Sort by count of
-
3
votes1
answer70
viewsSort decimal notes
I’m ordering a related json into notes in undescore.js {8.0 , 8,5 , 5,5 } var asc = _.sortBy(oper, function(num) { return num.nota; }); Punch the 10.0 he doesn’t throw up.. He gets like this 8.8 6.0…
-
3
votes1
answer62
viewsIs it possible to load undescore templates externally with javascript?
I usually use Template Engines in order to render HTML via Javascript. I commonly use undescore.js. I really like this way to make it easier to create HTML with Templates. Example: Somewhere in the…
-
1
votes1
answer218
viewsFilter through multidimensional objects with underscore.js
How do I filter objects by the operations attribute inside json? var data = Object entrada_diff: "00:00:00" entrada_hoje: "00:00:00" entrada_jornada: "08:00:00" entrada_status: "PENDENTE"…
-
1
votes1
answer114
viewsRegular expression search
I’m trying to do a regular expression search on a huge json this way: json = _.filter(dados.responseJSON,function(rst){ return /rst.dst/m == tel }); But it’s not working. The goal is to search as if…
-
1
votes1
answer47
views(Backbonejs) Run a View after server return
In my application I have 2 Views. One of them is sending the data to the server when the client clicks on Submit. The other needs to wait for that reply and run to work with the 'updated' data'. How…
-
0
votes1
answer122
viewsNotification system, _.template(...). html is not a Function
I am making a notification system and am getting the following error: Uncaught TypeError: _.template(...).html is not a function Follow the code here: <script type="text/x-template"…
-
0
votes1
answer326
viewsUnderscore JS, Group object array by more than 1 attribute contained in an object
Hello I currently have an object of arrays that contains the following structure { "ID_Local_leitura": "2134236478dysa743242579f", "idO": "11342s36478dysa743242579", "timeStamp":…