objectDestructuringEmpty.js 152 B

1234567
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = function (obj) {
  4. if (obj == null) throw new TypeError("Cannot destructure undefined");
  5. };