mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Remove semicolons.
This commit is contained in:
12
isString.js
12
isString.js
@@ -1,5 +1,5 @@
|
||||
import baseGetTag from './.internal/baseGetTag.js';
|
||||
import isObjectLike from './isObjectLike.js';
|
||||
import baseGetTag from './.internal/baseGetTag.js'
|
||||
import isObjectLike from './isObjectLike.js'
|
||||
|
||||
/**
|
||||
* Checks if `value` is classified as a `String` primitive or object.
|
||||
@@ -10,15 +10,15 @@ import isObjectLike from './isObjectLike.js';
|
||||
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
||||
* @example
|
||||
*
|
||||
* isString('abc');
|
||||
* isString('abc')
|
||||
* // => true
|
||||
*
|
||||
* isString(1);
|
||||
* isString(1)
|
||||
* // => false
|
||||
*/
|
||||
function isString(value) {
|
||||
return typeof value == 'string' ||
|
||||
(!Array.isArray(value) && isObjectLike(value) && baseGetTag(value) == '[object String]');
|
||||
(!Array.isArray(value) && isObjectLike(value) && baseGetTag(value) == '[object String]')
|
||||
}
|
||||
|
||||
export default isString;
|
||||
export default isString
|
||||
|
||||
Reference in New Issue
Block a user