Size getter

[data/dictionary/Size getter]


Gets the number of items in the dictionary. Example:

  1. { "first": 1, "third": 3, "fifth": 5 }@0 received via dict

  2. size sends 3@0

More: https://github.com/Cranq-io/cranq-tutorials/tree/main/reference/3_querying_data/3_1_getters


Keywords: dictionary, dict, size, count, length

Input ports

  • dict: {string: any}

    Receives the dictionary to count the number of items of. Example: { "first": 1, "third": 3, "fifth": 5 }

Output ports

  • size: number

    Sends the calculated dictionary size. Example: 3

Last updated