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:元素删除是否成功。可以通过传入NULL来忽略result。
如果 API 成功,则返回 napi_ok。
【Returns napi_ok if the API succeeded.】
此 API 尝试从 object 中删除指定的 index。
【This API attempts to delete the specified index from object.】