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,5 +1,5 @@
import baseGetTag from './.internal/baseGetTag.js';
import isObject from './isObject.js';
import baseGetTag from './.internal/baseGetTag.js'
import isObject from './isObject.js'
/**
* Checks if `value` is classified as a `Function` object.
@@ -10,21 +10,21 @@ import isObject from './isObject.js';
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* isFunction(_);
* isFunction(_)
* // => true
*
* isFunction(/abc/);
* isFunction(/abc/)
* // => false
*/
function isFunction(value) {
if (!isObject(value)) {
return false;
return false
}
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
const tag = baseGetTag(value);
const tag = baseGetTag(value)
return tag == '[object Function]' || tag == '[object AsyncFunction]' ||
tag == '[object GeneratorFunction]' || tag == '[object Proxy]';
tag == '[object GeneratorFunction]' || tag == '[object Proxy]'
}
export default isFunction;
export default isFunction