Java 1.6 and later.
Include the following in your pom.xml
for Maven:
<dependencies>
<dependency>
<groupId>com.github.javadev</groupId>
<artifactId>underscore</artifactId>
<version>1.26</version>
</dependency>
...
</dependencies>
Gradle:
compile 'com.github.javadev:underscore:1.26'
Underscore-java is a java port of Underscore.js.
In addition to porting Underscore's functionality, Underscore-java includes matching unit tests.
For docs, license, tests, and downloads, see: http://javadev.github.io/underscore-java
Thanks to Jeremy Ashkenas and all contributors to Underscore.js.