index.js 487 B

123456789101112131415161718
  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. 'use strict';
  10. /**
  11. * Indicates if `Symbol`exists and creates the correct type.
  12. * `true`, if it exists and creates the correct type, otherwise `false`.
  13. *
  14. * @type boolean
  15. */
  16. module.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';