Closed nathancahill closed 6 years ago
Fixes #76. With this, all cases in Babel's babel-plugin-transform-destructuring are covered.
Changes the check from regex /Function/ to an explicit list of types to transpile parameters of.
/Function/
CatchClause uses param = obj instead of params = [obj], so the transpileParameters function now supports both.
param = obj
params = [obj]
transpileParameters
Nice!
Fixes #76. With this, all cases in Babel's babel-plugin-transform-destructuring are covered.
Changes the check from regex
/Function/
to an explicit list of types to transpile parameters of.CatchClause uses
param = obj
instead ofparams = [obj]
, so thetranspileParameters
function now supports both.