objectDestructuringEmpty.js 108 B

123
  1. export default (function (obj) {
  2. if (obj == null) throw new TypeError("Cannot destructure undefined");
  3. });