search

Home  >  Q&A  >  body text

javascript - Solve the meaning of js syntax sugar...

 * [['hello'],['world','1','2']]
 * => [Array(1), Array(3)]
 * [['hello'],...[].slice.call(['world','1','2'], 0)]
 * => [Array(1), "world", "1", "2"]
 * [...['hello'],...[].slice.call(['world','1','2'], 0)]
 * => ["hello", "world", "1", "2"]
 

You can see the effect of adding syntax sugar.... But my level is limited and I can't find any information about... on the Internet. Can someone explain it to me? It’s better to have resources. Thanks.

曾经蜡笔没有小新曾经蜡笔没有小新2796 days ago502

reply all(3)I'll reply

  • 迷茫

    迷茫2017-05-19 10:33:48

    https://developer.mozilla.org...

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-19 10:33:48

    ES6’s spread operator
    http://www.108js.com/article/...

    reply
    0
  • 怪我咯

    怪我咯2017-05-19 10:33:48

    Extension operator

    reply
    0
  • Cancelreply