Readme

underscore

underscore is a module for functional programming and other utilities in JavaScript. It inspired lodash, which is what most people use now, because lodash is both faster, and provides an ESM version which is convenient to use in Val Town.

Note that while we can import from lodash-es and use its named exports, underscore only provides a default export, so that's why we have the code { default: _ } below.

1
2
3
4
export let underscoreExample = (async () => {
const { default: _ } = await import("npm:underscore");
return _.max([1, 2, 3]);
})();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023