We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeScript Version: 4.1.2
Search Terms: 4.1.2 split
4.1.2
split
Code
const [a] = 'a:b'.split(':');
Expected behavior: typeof a should be string
a
string
string.split ALWAYS return string at first position
Actual behavior: tyeof a is string|undefined
string|undefined
TypeScript Version: 4.1.2
Search Terms:
4.1.2splitCode
Expected behavior:
typeof
ashould bestringstring.split ALWAYS return string at first position
Actual behavior:
tyeof
aisstring|undefined