2 deleted 15 characters in body
source | link

JavaScriptJavaScript, 111119 bytes

(a,b,c)=>{o="";for(s=++b;s<s=++b;(s<(t=c.length)||s==b)&&s>=0&&b<a;)s-=b,o+=c.slice(s,s+=a<t?a:t).join`
`+`

`;return s>0?o:""}

Try it online!Try it online!

Receives input in the format F,B B,[array] [Array]

JavaScript, 111 bytes

(a,b,c)=>{o="";for(s=++b;s<(t=c.length)&&s>=0&&b<a;)s-=b,o+=c.slice(s,s+=a<t?a:t).join`
`+`

`;return s>0?o:""}

Try it online!

Receives input in the format F,B,[array]

JavaScript, 119 bytes

(a,b,c)=>{o="";for(s=++b;(s<(t=c.length)||s==b)&&s>=0&&b<a;)s-=b,o+=c.slice(s,s+=a<t?a:t).join`
`+`

`;return s>0?o:""}

Try it online!

Receives input in the format F, B, [Array]

1
source | link

JavaScript, 111 bytes

(a,b,c)=>{o="";for(s=++b;s<(t=c.length)&&s>=0&&b<a;)s-=b,o+=c.slice(s,s+=a<t?a:t).join`
`+`

`;return s>0?o:""}

Try it online!

Receives input in the format F,B,[array]