Skip to content

yamlFromEntries

yamlFromEntries(entries) → object · YAML

Create a YAML object from an array of [key, value] pairs. See Chapter 26.

  • entries (required): array of [key, value] pairs
utlx
yamlFromEntries([["host", "localhost"], ["port", 5432]])
// {host: "localhost", port: 5432}

Released under AGPL-3.0.