Skip to main content

Questions tagged [underscore.js]

Underscore is a library for JavaScript that provides functional programming support.

0 votes
1 answer
77 views

I need to filter projects using a searchbar, it should filter all properties of the projects with a few exceptions. It's working, but it's extremely slow, where can I make optimizations? The "_" is ...
Cold_Class's user avatar
5 votes
5 answers
17k views

NOTE: I'm bringing this question up in code review rather than stack overflow since I already have a working solution. I just am looking for ways to do it better. I have two arrays. One is an array of ...
blueren's user avatar
  • 161
4 votes
1 answer
2k views

Because this is my very first attempt to create a data grid with Vue, I would like to know about all misconceptions used in my approach. Whomever points to the most important shortcoming / weakness in ...
user avatar
2 votes
0 answers
160 views

...
ascendantofrain's user avatar
4 votes
1 answer
118 views

I want to transform such object from: foo = { 42: 'foo', 'a.b.c[0].42': 'bar', 'a.b.c[0].43': 'zet', 'a.d.c[0].42': 'baz' } To: ...
Dmytro Rudnitskikh's user avatar
3 votes
0 answers
476 views

I am working on rewriting the underlying code for some Underscore.js functions. Re-writing the reduce function has been causing a lot of headaches. I have been able to re-write it two different ways, ...
A_A's user avatar
  • 131
2 votes
1 answer
291 views

A made a shipping calculator, which consists of one field that is validated. jsFiddle HTML: ...
cyklop77's user avatar
  • 311
1 vote
1 answer
212 views

I'm using TypeScript but this example is in plain JavaScript. I have a class rank with a child-class master. I need an ordered ...
Иван Грозный's user avatar
1 vote
1 answer
668 views

The code bellow generates all the permutation(with repetitions) for given character set. Is there any better(simpler, more performant) way to do that? ...
kharandziuk's user avatar
1 vote
1 answer
162 views

I've got this kind of data: [ { userId: 1, postId: 1, ... }, { userId: 1, postId: 2, ... }, { userId: 2, postId: 3, ... }, ... ] And I need to group them ...
Yann Bertrand's user avatar
1 vote
1 answer
231 views

I put together a jQuery plugin that displays a month of dates using underscore templates. When the template has been populated and displayed in the UI, a user can click on a date which sends a request ...
Jose the hose's user avatar
4 votes
0 answers
107 views

I have created a Backbone Movie app as part of a learning exercise, the app is hosted on codepen although I actually have it built on my local but thought this approach would be handier for code ...
styler's user avatar
  • 233
4 votes
3 answers
168 views

This question is a follow-up of a previous question of mine: Genetic Drift Simulator. Following the advice given in the last question, and some more general improvements, the code has been slimmed ...
Quill's user avatar
  • 12.1k
7 votes
1 answer
47k views

I have two different arrays: ...
JulieMarie's user avatar
3 votes
1 answer
13k views

I have JSON data: var data = [ { dat: 'timestamp', val: 10 }, { dat: 'timestamp', val: 20}, (...)] Data contains objects with timestamp and value, can be more ...
kxyz's user avatar
  • 131

15 30 50 per page