697210c275470c45682bf4fa4051dc735ce9723ebbda7ba407d41f9bcee42ca2b19d53803e7dedece43125abe64c4f67652c70c464f97478f6c00a8ce27ffa 245 B

12345678910111213141516
  1. 'use strict';
  2. module.exports = function isSameType(x, y) {
  3. if (x === y) {
  4. return true;
  5. }
  6. if (typeof x === typeof y) {
  7. if (typeof x !== 'object' || typeof y !== 'object') {
  8. return true;
  9. }
  10. return !!x === !!y;
  11. }
  12. return false;
  13. };