MCPcopy
hub / github.com/dunky11/react-saas-template / isString

Function isString

src/shared/functions/toArray.js:841–848  ·  view source on GitHub ↗

* Checks if `value` is classified as a `String` primitive or object. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isString('abc'); * // => true *

(value)

Source from the content-addressed store, hash-verified

839 * // => false
840 */
841function isString(value) {
842 return (
843 typeof value === "string" ||
844 (!isArray(value) &&
845 isObjectLike(value) &&
846 objectToString.call(value) === stringTag)
847 );
848}
849
850/**
851 * Converts `value` to an array.

Callers 1

toArrayFunction · 0.85

Calls 1

isObjectLikeFunction · 0.85

Tested by

no test coverage detected