Underscore JavaScript Utility Library (_static/underscore-1.3.1.js)

Esri/hermes · helpDoc/_build/_build/html/_static/underscore-1.3.1.js · javascript · Apache-2.0
dev-tools, lang:javascript, tag:utility, tag:functional, tag:library

Provides utility functions for common JavaScript manipulation tasks like maps, filters, and templates. Reuse for legacy functional programming helpers.

// Source: https://github.com/Esri/hermes | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
//     Underscore.js 1.3.1
//     (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
//     Underscore is freely distributable under the MIT license.
//     Portions of Underscore are inspired or borrowed from Prototype,
//     Oliver Steele's Functional, and John Resig's Micro-Templating.
//     For all details and documentation:
//     http://documentcloud.github.com/underscore

(function() {

  // Baseline setup
  // --------------

  // Establish the root object, `window` in the browser, or `global` on the server.
  var root = this;

  // Save the previous value of the `_` variable.
  var previousUnderscore = root._;

  // Establish the object that gets return

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key