si-funciona
    Preparing search index...

    Function setAndReturnValue

    • Set a value on an item, then return the value

      Parameters

      • item: settableItem

        An object or array to be updated

      • key:
            | number
            | "map"
            | "length"
            | "toString"
            | "toLocaleString"
            | "pop"
            | "push"
            | "concat"
            | "join"
            | "reverse"
            | "shift"
            | "slice"
            | "sort"
            | "splice"
            | "unshift"
            | "indexOf"
            | "lastIndexOf"
            | "every"
            | "some"
            | "forEach"
            | "filter"
            | "reduce"
            | "reduceRight"
            | "find"
            | "findIndex"
            | "fill"
            | "copyWithin"
            | "entries"
            | "keys"
            | "values"
            | "includes"
            | "flatMap"
            | "flat"

        The key on the item which will have its value set

      • value: any

        Any value to be applied to the key

      Returns any