sirisian / ecmascript-types

ECMAScript Optional Static Typing Proposal http://sirisian.github.io/ecmascript-types/
453 stars 4 forks source link

Expand the Rest Parameters section to include array destructuring examples #51

Closed sirisian closed 4 years ago

sirisian commented 4 years ago
function f(...[a:uint8, b:uint8, c:uint8]) {
  return a + b + c;
}
sirisian commented 4 years ago

Added to the bottom of the rest parameters section: https://github.com/sirisian/ecmascript-types#rest-parameters