JavaScript library for functional programming that doesn’t extend built-in JavaScript objects.

Underscore.js is a JavaScript library for functional programming. It doesn’t extend built-in JavaScript objects, but uses an object named _ instead.
It offers ~80 helper functions for the usual day-to-day programming. Since version 3.5 is is included WordPress.

It is registered as underscore in WordPress; if you need it in your code just call:

wp_enqueue_script( 'underscore' );

Do not replace (re-register) it with a source from an external URL, or WordPress, other plugins and themes will stop working properly.

history | excerpt history