Protractor: Print off first five <li> entries contained inside <ul> element

I have a <ul> div that contains various <li> entries. I would like, to print off just the first five <li> elements and also would like to print them off individually if possible.

This is the css

<ul class="legend-numbers">
<li>-</li>
<li>-</li>
<li>-</li>
<li>58,983.58</li>
<li>127,4563.09</li>
<li>450,918.28</li>
<li>246,833.09</li>
<li>550,953.58</li>
<li>277,733.09</li>i>
<!--anchor-->
			</ul>

And this how I’m trying to tackle this in my page object file

checkFigures (figures) {
	browser.sleep(8000);
   	var balance = element.all(by.css('ul.legend-numbers> li'));
	var cellTexts = balance.map(function (elm) {
    	return elm.getText().then(function (text) {
      	console.log(text);
		});
	    });
	}
 }

I’m not really sure how I only get the first five entries or how I can choose to print off the second <li> element or third <li> element etc. I’ve tried to use indexOf() or .getFirst() but I get errors when I try to do so.
Thanks


Source: stackoverflow-javascript