isString source npm

_.isString(value)

Checks if value is classified as a String primitive or object.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is correctly classified, else false.

Example

_.isString('abc');
// => true

_.isString(1);
// => false