Is there a jQuery map utility that doesn't automically flatten?

后端 未结 2 2001
萌比男神i
萌比男神i 2021-02-06 21:15

I\'m mapping an array of two-tuples from one domain (dates) to another (timestamps). Unfortunately, it looks like jQuery.map auto-flattens the two-tuples I return,

2条回答
  •  囚心锁ツ
    2021-02-06 21:38

    I'm not really sure what a "two-tuple" is and I'm not really sure I got it right from the Google results I looked at. But did you take a look at jQuery.each?

提交回复
热议问题