Function: attributesToString()

Estimated reading time: less than 1 minute
function attributesToString(this, attributes): string

Transforms an object of attributes into a html attributes string.

This function does not support Date objects.

Parameters

this

void

attributes

object

A record of literal values to use as attributes.

Returns

string

The generated html attributes string.

Example

;`a b="c" d="1"`