mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Remove semicolons.
This commit is contained in:
16
isRegExp.js
16
isRegExp.js
@@ -1,9 +1,9 @@
|
||||
import baseGetTag from './.internal/baseGetTag.js';
|
||||
import isObjectLike from './isObjectLike.js';
|
||||
import nodeUtil from './.internal/nodeUtil.js';
|
||||
import baseGetTag from './.internal/baseGetTag.js'
|
||||
import isObjectLike from './isObjectLike.js'
|
||||
import nodeUtil from './.internal/nodeUtil.js'
|
||||
|
||||
/* Node.js helper references. */
|
||||
const nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
||||
const nodeIsRegExp = nodeUtil && nodeUtil.isRegExp
|
||||
|
||||
/**
|
||||
* Checks if `value` is classified as a `RegExp` object.
|
||||
@@ -14,14 +14,14 @@ const nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
||||
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
||||
* @example
|
||||
*
|
||||
* isRegExp(/abc/);
|
||||
* isRegExp(/abc/)
|
||||
* // => true
|
||||
*
|
||||
* isRegExp('/abc/');
|
||||
* isRegExp('/abc/')
|
||||
* // => false
|
||||
*/
|
||||
const isRegExp = nodeIsRegExp
|
||||
? value => nodeIsRegExp(value)
|
||||
: value => isObjectLike(value) && baseGetTag(value) == '[object RegExp]';
|
||||
: value => isObjectLike(value) && baseGetTag(value) == '[object RegExp]'
|
||||
|
||||
export default isRegExp;
|
||||
export default isRegExp
|
||||
|
||||
Reference in New Issue
Block a user