DEV Community

loading...

Discussion on: Why svelte is revolutionary

Collapse
pengeszikra profile image
Peter Vivo

Yes you right that is attitude depend. I use arrows most of times, speciel this cases:

const chunk = block => arr => Array(Math.ceil( arr.length / block))
  .fill()
  .map( (_,i) => arr.slice(i * block, i * block + block));

where I can use dependency injection with arrow functions chain.