Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
613 bytes
|
Line | |
---|
1 | var baseIsSet = require('./_baseIsSet'),
|
---|
2 | baseUnary = require('./_baseUnary'),
|
---|
3 | nodeUtil = require('./_nodeUtil');
|
---|
4 |
|
---|
5 | /* Node.js helper references. */
|
---|
6 | var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * Checks if `value` is classified as a `Set` object.
|
---|
10 | *
|
---|
11 | * @static
|
---|
12 | * @memberOf _
|
---|
13 | * @since 4.3.0
|
---|
14 | * @category Lang
|
---|
15 | * @param {*} value The value to check.
|
---|
16 | * @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
---|
17 | * @example
|
---|
18 | *
|
---|
19 | * _.isSet(new Set);
|
---|
20 | * // => true
|
---|
21 | *
|
---|
22 | * _.isSet(new WeakSet);
|
---|
23 | * // => false
|
---|
24 | */
|
---|
25 | var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
---|
26 |
|
---|
27 | module.exports = isSet;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.