main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
511 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | var baseGetTag = require('./_baseGetTag'),
|
---|
| 2 | isObjectLike = require('./isObjectLike');
|
---|
| 3 |
|
---|
| 4 | /** `Object#toString` result references. */
|
---|
| 5 | var regexpTag = '[object RegExp]';
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * The base implementation of `_.isRegExp` without Node.js optimizations.
|
---|
| 9 | *
|
---|
| 10 | * @private
|
---|
| 11 | * @param {*} value The value to check.
|
---|
| 12 | * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
---|
| 13 | */
|
---|
| 14 | function baseIsRegExp(value) {
|
---|
| 15 | return isObjectLike(value) && baseGetTag(value) == regexpTag;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | module.exports = baseIsRegExp;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.