@kosko/common-utilsFunctionstoArraypublictoArray CallabletoArray<T>(input: T | T[]): T[]Transforms input into an array, or leave it as-is if input is already an array.Type parametersTParametersinput: T | T[]Returns T[]
Transforms
input
into an array, or leave it as-is ifinput
is already an array.