COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220221518/https://github.com/lodash/lodash/blob/master/isString.js
Permalink
Cannot retrieve contributors at this time
23 lines (21 sloc)
567 Bytes
import getTag from './.internal/getTag.js'
/**
* Checks if `value` is classified as a `String` primitive or object.
*
* @since 0.1.0
* @category Lang
* @param {* } value The value to check.
* @returns {boolean } Returns `true` if `value` is a string, else `false`.
* @example
*
* isString('abc')
* // => true
*
* isString(1)
* // => false
*/
function isString ( value ) {
const type = typeof value
return type === 'string' || ( type === 'object' && value != null && !Array . isArray ( value ) && getTag ( value ) == '[object String]' )
}
export default isString
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.