prepareArguments.js 488 Bytes
"use strict";

require("core-js/modules/es6.object.define-property");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = prepareArguments;

require("core-js/modules/es6.regexp.to-string");

require("core-js/modules/es6.date.to-string");

var _index = require("../index");

function prepareArguments(arg, depth) {
  try {
    return JSON.stringify((0, _index.decycle)(arg, depth));
  } catch (error) {
    return error.toString(); // IE still cyclic.
  }
}