Dynamic Icons Scripting Reference - v1.3.0
    Preparing search index...

    Function assignExistingProperties

    • Assigns property values in from object to values in the to object, but only if they already exist in to and have a matching typeof type. Recurses up to recurseLevel nested objects, and skips assigning object-type properties beyond the recursion level. Arrays are copied by value. If strToNum is true then source string types are considered compatible with destination numeric types (destination is responsible for conversion).

      Parameters

      • to: {}
      • Optionalfrom: {}
      • recurseLevel: number = 0
      • strToNum: boolean = false

      Returns void