项目原始demo,不改动
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

123456789
  1. 'use strict';
  2. module.exports = function (x) {
  3. if (!x) return false;
  4. if (typeof x === 'symbol') return true;
  5. if (!x.constructor) return false;
  6. if (x.constructor.name !== 'Symbol') return false;
  7. return (x[x.constructor.toStringTag] === 'Symbol');
  8. };