4 ms·Nothing is technically wrong. But I would write it as var isString = typeof string === "string";by Rockslide 11y agoNothing is technically wrong. But I would write it as var isString = typeof string === "string";