Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -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