Function omitChars

Returns source with a given number of characters removed from start position.

// Remove three characters starting at position 1
omitChars(`hello there`, 1, 3); // ie. removes 'ell'
// Yields: `ho there`
  • Parameters

    • source: string
    • removeStart: number

      Start point to remove

    • removeLength: number

      Number of characters to remove

    Returns string