I was a little confused by the line I fixed. It wraps another array around the additionalArgs if, and only if, it is already an array. I'm guessing this line was intended to accept a single string argument and convert it into an array - thus I added a "!" in front. This also solve my problem - I wanted to pass in multiple args.
FIXED: DynamoDbLocal.launch dynamoLocalPort, null, ["-sharedDb", "-cors", "'*'"]
I was a little confused by the line I fixed. It wraps another array around the additionalArgs if, and only if, it is already an array. I'm guessing this line was intended to accept a single string argument and convert it into an array - thus I added a "!" in front. This also solve my problem - I wanted to pass in multiple args.