Musique/node_modules/ext/docs/object/clear.md

232 B

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); // []