In javascript, what does the ! sign do in front of an array bracket?

by Arnold Rimmer   Last Updated July 11, 2019 19:26 PM - source

I'm making a vscode extension and I see this code snippet used online a lot, but what does the ! here mean? I have never seen not used like this and don't even no what to google to find out what it means.

const workspaceRoot: WorkspaceFolder = workspace.workspaceFolders![0]

Related Questions

Using Map() with typescript in VSCode

Updated December 27, 2017 13:26 PM

Use d.ts files without TypeScript (instead of JSDoc)

Updated January 02, 2018 12:26 PM

Override field type definition

Updated July 31, 2018 18:26 PM