Eslint yells at me about this line because it should be done with array destructuring :
postModel.base64File = formFile.split(',')[1];
I am concerned because I cannot find a way to do this in a single instruction. The best I came up with is the following :
const [, b64] = formFile.split(',');
postModel.base64File = b64;
Is there a way to make this assignment in a single instruction ?