ensure-plain-function.js 223 B

12345678
  1. "use strict";
  2. module.exports = function (t, a) {
  3. // Just sanity checks, as logic is tested at isPlainFunction
  4. var fn = function () {};
  5. a(t(fn), fn, "Function");
  6. a.throws(function () { t({}); }, TypeError, "Error");
  7. };