Unpack array argument directly to parameters? Unpack array argument directly to parameters? typescript typescript

Unpack array argument directly to parameters?


Ok I figured it out, might as well post as an answer. This works:

function ([boolValue, stringValue]: [boolean, string]) {   // make use of boolValue and stringValue}