Skip to main content

CommonConvertStringToArray

Callable

  • CommonConvertStringToArray(s: string): number[]

  • Converts a string of numbers split by commas to an array, sanitizes the array by removing all NaN or undefined elements.


    Parameters

    • s: string

      String of numbers split by commas

    Returns number[]

    • Array of valid numbers from the given string