Function isNumericPropertyName

  • Test if a string is numeric.

    Parameters

    • name: string | string & {} | void & {}

    Returns boolean

    Example

    isNumericPropertyName("abc"); // false
    isNumericPropertyName("123"); // true