What is the logic behind “prop: props[ i % props.length] inside a .map()”?

后端 未结 0 486
失恋的感觉
失恋的感觉 2021-02-05 15:51

I am trying to understand...

// group is an array of numbers coming from an api

const arr = group.map((el, i) => {
  return new obj({
    element: el,
    pro         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题