JSFiddle - React, Tailwind, and code Playground
by deepak sisodiya
HTML
<script src="https://rawgit.com/jashkenas/underscore/1.5.2/underscore-min.js"></script>
JavaScript
// javascript program using underscore.js
var alert = function (str) {
var st = document.createTextNode(str);
var p = document.createElement('p');
p.appendChild(st);
document.querySelector('body').appendChild(p);
}
var scores = [84, 99, 91, 65, 87, 55, 72, 68, 95, 42],
topScorers = [], scoreLimit = 90;
topScorers = _.select(scores,function(scores) { return scores > scoreLimit})
/*
topScorers = _(scores).select(function(score){ return score > scoreLimit;});
*/
alert(topScorers);