Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 368 Bytes

File metadata and controls

13 lines (9 loc) · 368 Bytes

Section 2.2: Readability

TypeScript enables editors to provide contextual documentation:

'morol'.slice();

slice(start?: number, end?: number): string

The index to the beginning of the specified portion of stringObj. Returns a section of a string.

You'll never forget whether String.prototype.slicetakes (start, stop) or (start, length) again!