node-json-db
    Preparing search index...

    Function setOwnProperty

    • Set an own property, even for the key __proto__, where a plain assignment would change the object's prototype instead. Every other key uses a plain assignment, so existing property attributes are kept (e.g. writing an array's non-configurable length truncates it).

      Parameters

      • target: any
      • key: string | number
      • value: any

      Returns void