Function ngrams

  • Get n-grams of a string.

    Parameters

    • x: string

      a string

    • n: number

      n-gram length

    Returns string[]

    [x[0:n], x[1:n+1], ...]

Generated using TypeDoc