nl_tokens: Returns an array with the range of pages to be displayed according to the params passed
pl_tokens: function pageRange ( selected , numPages , num ) { let selectedPos = Math . ceil ( num / 2 ) ; let start = ( selected < selectedPos ) ? 1 : selected - selectedPos + 1 ; let len = ( numPages < start + num - 1 ) ? numPages - start + 1 : num ; return Array . apply ( null , Array ( len ) ) . <mask> ( ( u , i ) => start + i ) ; }