I was just wondering if there was a simple shortcut to add options to a dropdown menu for the numbers 1 to 100 instead of having to do the following:
Jquery One-liners:
ES6 + jQuery:
$('#select').append([...Array(100).keys()].map((i,j) => `< option >${i}`))
Lodash + jQuery:
$('#select').append(_.range(100).map(function(i,j){ return $('',{text:i})}))