Is "type" a keyword in JavaScript?

As mentioned by PitaJ, the type symbol here is not part of ES6 or any earlier version of JavaScript, but rather part of the Flow static type checker.

Here are the docs for the type symbol.


As far as I know, the ES6 spec does not list it as a reserved keyword.

The following tokens are ECMAScript keywords and may not be used as Identifiers in ECMAScript programs.

break do in typeof case else instanceof var catch export new void class extends return while const finally super with continue for switch yield debugger function this default if throw delete import try