Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (
typeof object.toString === "function" &&
object.toString !== Object.prototype.toString
) {
return object.toString();
}
var i, l;
for (i = 0, l = specialObjects.length; i < l; i++) {
if (object === specialObjects[i].object) {
return specialObjects[i].value;
}
}
if (samsam.isSet(object)) {
return ascii.set.call(f, object, internalProcessed);
}
if (object instanceof Map) {
return ascii.map.call(f, object, internalProcessed);
}
return ascii.object.call(f, object, internalProcessed, indent);
}