Forum

    • Register
    • Login
    • Search
    • Categories

    remove "key/value" from object?

    Scripting Forum
    2
    2
    28
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ulrik
      ulrik last edited by ulrik

      How do you do to remove a "key/value" pair from an object in Hise?
      Is there an easy way?

      Instead of setting the key or the value to null or undefined?
      example:

      var Object = {"Wheel1": 23, "Wheel2": 12];
      //  This will not work
      delete Object.Wheel2;
      delete Object[Wheel2];
      

      Hise Develop branch
      MacOs 13, Xcode 14.0.1
      http://musikboden.se

      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @ulrik last edited by

        @ulrik https://forum.hise.audio/topic/373/delete-object-item?_=1675813186372

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        25
        Online

        1.1k
        Users

        6.8k
        Topics

        62.5k
        Posts