|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
478 bytes
|
| Line | |
|---|
| 1 | var getTag = require('./_getTag'),
|
|---|
| 2 | isObjectLike = require('./isObjectLike');
|
|---|
| 3 |
|
|---|
| 4 | /** `Object#toString` result references. */
|
|---|
| 5 | var setTag = '[object Set]';
|
|---|
| 6 |
|
|---|
| 7 | /**
|
|---|
| 8 | * The base implementation of `_.isSet` without Node.js optimizations.
|
|---|
| 9 | *
|
|---|
| 10 | * @private
|
|---|
| 11 | * @param {*} value The value to check.
|
|---|
| 12 | * @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|---|
| 13 | */
|
|---|
| 14 | function baseIsSet(value) {
|
|---|
| 15 | return isObjectLike(value) && getTag(value) == setTag;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | module.exports = baseIsSet;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.