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,13 +1,13 @@
import baseGetTag from './.internal/baseGetTag.js';
import isLength from './isLength.js';
import isObjectLike from './isObjectLike.js';
import nodeUtil from './.internal/nodeUtil.js';
import baseGetTag from './.internal/baseGetTag.js'
import isLength from './isLength.js'
import isObjectLike from './isObjectLike.js'
import nodeUtil from './.internal/nodeUtil.js'
/** Used to match `toStringTag` values of typed arrays. */
const reTypedTag = /^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)\]$/;
const reTypedTag = /^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)\]$/
/* Node.js helper references. */
const nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
const nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray
/**
* Checks if `value` is classified as a typed array.
@@ -18,14 +18,14 @@ const nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
* @example
*
* isTypedArray(new Uint8Array);
* isTypedArray(new Uint8Array)
* // => true
*
* isTypedArray([]);
* isTypedArray([])
* // => false
*/
const isTypedArray = nodeIsTypedArray
? value => nodeIsTypedArray(value)
: value => isObjectLike(value) && isLength(value.length) && reTypedTag.test(baseGetTag(value));
: value => isObjectLike(value) && isLength(value.length) && reTypedTag.test(baseGetTag(value))
export default isTypedArray;
export default isTypedArray