_.times()
executes the function n times.<!DOCTYPE html>
<html>
<head>
<title>Lodash Tutorial</title>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script>
<script type="text/javascript">
_.times(4, () => {
console.log("Learning");
})
</script>
</head>
<body></body>
</html>
Learning
Learning
Learning
Learning