Repository navigation
Underscore β Native JavaScript
Brad Simpson edited this page Feb 12, 2026
·
1 revision
The following is a guide to converting Underscore functions to native JavaScript (ES6/ES2015+).
| Underscore | Native JavaScript |
|---|---|
_.bind() |
.bind() |
_.compact() |
.filter(Boolean) |
_.contains() |
π« .includes()
|
_.each() |
forfor...in.forEach()
|
_.every() |
.every() |
_.extend() |
π« Object.assign()
|
_.filter() |
.filter() |
_.find() |
π« .find()
|
_.findIndex() |
π« .findIndex()
|
_.indexOf() |
.indexOf() |
_.isArray() |
Array.isArray() |
_.keys() |
Object.keys() |
_.map() |
.map() |
_.some() |
.some() |
_.values() |
π« Object.values()
|
- Framework in Five Minutes
- Setting up Your Development Environment
- Manual Installation of the Adapt Framework
- Adapt Command Line Interface
- Common Issues
- Reporting Bugs
- Requesting Features
- Creating Your First Course
- Styling Your Course
- Configuring Your Project with config.json
- Content starts with course.json
- Course Localisation
- Compiling, testing and deploying your Adapt course
- Core Plugins in the Adapt Learning Framework
- Converting a Course from Framework Version 1 to Version 2
- Contributing to the Adapt Project
- Adapt API
- Core Events
- Core Model Attributes
- Core Modules
- States and Indicators
- Right to Left (RTL) Support
- Web Security Audit
- Plugins
- Developing Plugins
- Developer's Guide: Components
- Developer's Guide: Theme
- Developer's Guide: Menu