Problem The code bellow generates all the permutation(with repetitions) for given character set. Is there any better(simpler, more performant) way […]
Tag: underscore.js
Deep pick using lodash/underscore
Problem Use Case _.pick creates a shallow clone of an object given a predicate that identifies which keys to keep. […]
How to sort two array of objects using Underscore.js? [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions must involve real code that you own […]
Adding ranks to objects in an array
Problem This works, and I personally find it elegant and kind of “neat,” but then I worry it’s a bit […]
Retrieve unique child objects from an array
Problem I’m using TypeScript but this example is in plain JavaScript. I have a class rank with a child-class master. […]
Convert object with ‘long.property.name’ property to object tree
Problem 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’ } […]
Deep custom AngularJS Filter
Problem I need to filter projects using a searchbar, it should filter all properties of the projects with a few […]
jQuery calendar plugin (using underscore templates)
Problem I put together a jQuery plugin that displays a month of dates using underscore templates. When the template has […]
Looping through nested arrays with creating new array from nested items
Problem I have written this function but I am not so proud on it. I could use some help refactoring […]
Martian Robots – a small JS program
Problem Please look at a small piece of code I wrote and provide some thoughts, critiques and any feedback you […]
- 1
- 2