columnify
columnify copied to clipboard
Do not mutate the options object
The options object is passed in from the user and should not be mutated.
here is one example of this mutation occuring.
To fix it, I suggest doing options = {...options}
as the first operation in the function call perhaps ?
An example of where this causes problems is if the objects object comes in frozen, then columnify throws an error.
Thank you for this library - it is very useful and I have used it for years before coming across this minor issue.