Create a helper that normalizes a value to an array (if not already an array) #7401
Labels
domain:dx
This issue reports a developer experience problem or possible improvement.
intro
Good first ticket.
package:utils
type:task
This issue reports a chore (non-production change) and other types of "todos".
Milestone
Provide a description of the task
We use the following normalization
Array.isArray( foo ) ? foo : [ foo ];
many times across the code-base. I think we need an utils for this repeating pattern.The text was updated successfully, but these errors were encountered: