How to check if variable is a string in JavaScript

Strings
Last updated Apr 28, 2018
const input = "potential string";

typeof input === "string";
true