mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import getRawTag from './getRawTag.js';
|
||||
import objectToString from './objectToString.js';
|
||||
import getRawTag from './getRawTag.js'
|
||||
import objectToString from './objectToString.js'
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
const nullTag = '[object Null]';
|
||||
const undefinedTag = '[object Undefined]';
|
||||
const nullTag = '[object Null]'
|
||||
const undefinedTag = '[object Undefined]'
|
||||
|
||||
/** Built-in value references. */
|
||||
const symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
||||
const symToStringTag = Symbol ? Symbol.toStringTag : undefined
|
||||
|
||||
/**
|
||||
* The base implementation of `getTag` without fallbacks for buggy environments.
|
||||
@@ -17,11 +17,11 @@ const symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
||||
*/
|
||||
function baseGetTag(value) {
|
||||
if (value == null) {
|
||||
return value === undefined ? undefinedTag : nullTag;
|
||||
return value === undefined ? undefinedTag : nullTag
|
||||
}
|
||||
return (symToStringTag && symToStringTag in Object(value))
|
||||
? getRawTag(value)
|
||||
: objectToString(value);
|
||||
: objectToString(value)
|
||||
}
|
||||
|
||||
export default baseGetTag;
|
||||
export default baseGetTag
|
||||
|
||||
Reference in New Issue
Block a user