wishthis/node_modules/ext/docs/object/clear.md
2022-01-21 09:28:41 +01:00

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