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.
Array.filter
Hi,
Will this be possible?
var foo: (number|string)[] = [1, 'bar']; foo.filter(item => typeof item ==='string').map(item => item/*string type*/); foo.filter(item => typeof item !=='string').map(item => item/*number type*/);