HISE Logo Forum
    • Categories
    • Register
    • Login

    remove "key/value" from object?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 103 Views
    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.
    • ulrikU
      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 15.3.1, Xcode 16.2
      http://musikboden.se

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        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

        54

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts