mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Apply even more let/const transforms.
This commit is contained in:
@@ -2,10 +2,10 @@ import baseGetTag from './_baseGetTag.js';
|
||||
import isObject from './isObject.js';
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
var asyncTag = '[object AsyncFunction]',
|
||||
funcTag = '[object Function]',
|
||||
genTag = '[object GeneratorFunction]',
|
||||
proxyTag = '[object Proxy]';
|
||||
const asyncTag = '[object AsyncFunction]';
|
||||
const funcTag = '[object Function]';
|
||||
const genTag = '[object GeneratorFunction]';
|
||||
const proxyTag = '[object Proxy]';
|
||||
|
||||
/**
|
||||
* Checks if `value` is classified as a `Function` object.
|
||||
@@ -30,7 +30,7 @@ function isFunction(value) {
|
||||
}
|
||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
||||
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
||||
var tag = baseGetTag(value);
|
||||
const tag = baseGetTag(value);
|
||||
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user