Function split

  • split(separator, limit?): string[]
  • Split a string into substrings using the specified separator and return them as an array.

    Parameters

    • separator: string | RegExp

      A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.

    • Optionallimit: number

      A value used to limit the number of elements returned in the array.

    Returns string[]

  • split(splitter, limit?): string[]
  • Split a string into substrings using the specified separator and return them as an array.

    Parameters

    • splitter: {
      [split](string: string, limit?: number): string[];
      }

      An object that can split a string.

      • [split]:function
        • [split](string, limit?): string[]
        • Parameters

          • string: string
          • Optionallimit: number

          Returns string[]

    • Optionallimit: number

      A value used to limit the number of elements returned in the array.

    Returns string[]

Settings

Member Visibility

AltStyle によって変換されたページ (->オリジナル) /