| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | /** |
| 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 | */ |
| 18 | module.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol'; |