I once made a very crude and simple TiddlyWiki work-alike I called "HulloWurld" https://github.com/calroc/HulloWurld It's 143 KB, but it includes copies of Knockout, Underscore, Zepto, and the "Marked" markdown parser... ¯\_(ツ)_/¯ ( Good stuff BTW: http://knockoutjs.com/ http://underscorejs.org/ https://zeptojs.com/ https://github.com/chjj/marked ) Probably the only interesting bit is the code to save the page:... - Source: Hacker News / 10 months ago
I am using the excellent Underscore.js library. I have a specific task which I can do fine using JavaScript or jQuery but was wondering if there was some sort of abstraction avaialable in Underscore that I was missing out on. - Source: Reddit / 11 months ago
There are many functional libraries for js like underscore, ramda, or even ts specific ones like fp-ts. - Source: Reddit / 11 months ago
/* Source: https://underscorejs.org/underscore-esm.js During a given window of time. Normally, the throttled function will run As much as it can, without ever going more than once per `wait` duration; But if you'd like to disable the execution on the leading edge, pass `{leading: false}`. To disable execution on the trailing edge, ditto. */ Function throttle(func, wait, options) { var timeout, context, args,... - Source: dev.to / 12 months ago
I'm using the JS library Underscore and in particular using the _.each and _.sortby library calls. I'm wondering if there's any possible way to get the index of the value within the iterator delegate. - Source: Reddit / 12 months ago
The code illustrated in this post is not recommended for use in production but the concepts most certainly are. Libraries like lodash and underscope provide many tried and tested, production-ready functions, some from the FP camp, that can simplify your code and make it easier to create reusable code. - Source: dev.to / about 1 year ago
Underscore might still be used some places, but it's been largely supplanted. - Source: Reddit / about 1 year ago
Underscore, then Lodash are examples for JavaScript of how useful features can be developed in a third party library that influence adoption in the language standard. As an example, Lodash would have been an inspiration / push for the ES2019 flatMap and ~flatten~ flat Array methods, without having modified the global prototypes. Lodash's lazy evaluation is listed as an inspiration in the current iterator helpers... - Source: Reddit / about 1 year ago
Imagine we want to print the timestamp for current time. We can do this in a lot of ways, but as for now we're going to use the underscore library. - Source: dev.to / about 1 year ago
It's both technical and cultural. Javascript is used on the front end. Front end devs obsess (or at least used to obsess) over download sized. So you'd have crazy stuff like custom builds of Underscore (https://underscorejs.org/) with just the functions you wanted. Think manual sandboxing, if that makes any sense. You could get a package of Underscore with just map, filter and reduceRight, if you wanted to. Now,... - Source: Hacker News / about 1 year ago
These are libraries that are small and focused on making a specific problem easier for the developer. Moment.js can make displaying time based data and perform various operations with it. Underscore adds a collection of functional programming primitives to JavaScript if that's your cup of tea. Lodash is similar in providing functions to make working with arrays, numbers objects easier. - Source: dev.to / over 1 year ago
If you have a couple of years as a developer, you've probably used either Lodash or Underscore.js. These are two libraries that provide a bunch of utilities to manipulate data, particularly array and objects. - Source: dev.to / almost 2 years ago
My first experience with the pattern was in JavaScript chaining jQuery calls. When Underscore came out I used its chain feature to write faster and cleaner code. Loved it! - Source: dev.to / almost 2 years ago
DocumentCloud and Investigative Reporters & Editors They've given precisely as much attribution as is required. - Source: Hacker News / almost 2 years ago
Debouncing an input in JavaScript is a common technique to reduce the rate of execution of a function. If a user is typing inside an input and you execute a function on each change of that input (each letter typed) it can quickly lead to a lot of computation power being used on just that. The common technique is called debounced and it will delay the execution of the function listening to the input, only every X... - Source: dev.to / almost 2 years ago
One of the first software development courses I ever took involved recreating the well known JavaScript library Underscore.js from scratch. Implementing more basic ones like each or map were manageable for me, but when we reached the more advanced ones, I was unable to keep up. One of the functions that really gave me a lot of trouble was memoize. I figuratively banged my head up against the wall with this... - Source: dev.to / almost 2 years ago
But don’t overdo it. You shouldn’t import underscore or lodash just to loop through an array. It only increases your package size and hurts the user experience. - Source: dev.to / almost 2 years ago
Underscore is a lower level JavaScript library. Lower level in that it’s very close to vanilla JavaScript. All it does is provide you with some helpers and tools to create web applications faster. - Source: dev.to / almost 2 years ago
Do you know an article comparing Underscore.js to other products?
Suggest a link to a post with product alternatives.