Subtheme of barrio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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