mikx1's picture
Upload folder using huggingface_hub
b5ea024
|
raw
history blame
232 Bytes

Object.clear (ext/object/clear)

Deletes all own, enumerable, non-symbol properties in the object

const clear = require("ext/object/clear");

const obj = { foo: "bar" };

clear(obj);
Object.keys(obj); // []