init(dictionaryLiteral:)

Creates a new object with the key-value pairs in the dictionary literal.

JSObject.swift:49
convenience required init(dictionaryLiteral elements: (String, JSValue)...)

Parameters

elements

A variadic list of key-value pairs where all keys are strings