Skip to content

yamlEntries

yamlEntries(object) → array · YAML

Get entries (key-value pairs) from a YAML object as an array of [key, value] pairs. See Chapter 26.

  • object (required): YAML object
utlx
yamlEntries({host: "localhost", port: 5432})
// [["host", "localhost"], ["port", 5432]]

Released under AGPL-3.0.