_.isString(value)

sourcenpm package

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

Since

0.1.0

Arguments

  • value (*): The value to check.

Returns

(boolean): Returns true if value is a string, else false.

Example

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