napi_delete_element


napi_status napi_delete_element(napi_env env,
                                napi_value object,
                                uint32_t index,
                                bool* result); 
  • [in] env:调用 Node-API 的环境。
  • [in] object:要查询的对象。
  • [in] index:要删除的属性索引。
  • [out] result:元素删除是否成功。result 可以通过传递 NULL 来选择性地忽略。

如果 API 成功,则返回 napi_ok

🌐 Returns napi_ok if the API succeeded.

此 API 尝试从 object 中删除指定的 index

🌐 This API attempts to delete the specified index from object.