@svizzle/utils/any-string

Methods

(static) stringify(any) → {string}

Source:
Since:
  • 0.1.0

Return a string representation of the input with indentation = 2.

Example
> stringify([{a: 1}, {a: 2}])
[
	{
		"a": 1
	},
	{
		"a": 2
	}
]
Parameters:
Name Type Description
any *
Returns:
Type
string