The "underscore.js" library
Underscore is a JavaScript library that provides a wide range of functional programming helpers without extending any built-in objects. It answers the question: “If I sit down in front of a blank JavaScript environment and want to be productive immediately, what do I need?”
Underscore offers over 100 functions, including common helpers like map, filter, and invoke, as well as more specialized utilities such as function binding, templating, quick indexing, and deep equality testing.
Learn more at the official Underscore.js website.
SyncJS comes with the minified version of the underscore.js module pre-installed. To use it, you must require the module in your script.
Example
ts
// Require the minified Underscore.js module
var _ = require("underscore-min");
// Use the "contains" function from the required module
if (_.contains([1, 2, 3], 3)) {
Log('Yay!');
}