why not just use typeof? 

```js

if (typeof value === 'string')
  //

```