mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
232 B
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); // []