Module: formatError

Formats an error object into a String. If available, uses name, message, and stack properties, otherwise, falls back on toString().
Parameters:
Name Type Description
object Object The item to find in the array.
Source:
Returns:
A string containing the formatted error.
Type
String