underscoreExample
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
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.
Migrated from folder: Modules/underscoreExample