blob: 20a9581eaf0957713ded4930faa1e7c0e4e86833 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001/**
2 * @file Tests if ES6 Symbol is supported.
3 * @version 1.4.2
4 * @author Xotic750 <Xotic750@gmail.com>
5 * @copyright Xotic750
6 * @license {@link <https://opensource.org/licenses/MIT> MIT}
7 * @module has-symbol-support-x
8 */
9
10'use strict';
11
12/**
13 * Indicates if `Symbol`exists and creates the correct type.
14 * `true`, if it exists and creates the correct type, otherwise `false`.
15 *
16 * @type boolean
17 */
18module.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';