IOTConnect-Web/node_modules/ext/docs/object/clear.md
2024-05-09 09:49:52 +08:00

13 lines
232 B
Markdown

# `Object.clear` _(ext/object/clear)_
Deletes all own, enumerable, non-symbol properties in the object
```javascript
const clear = require("ext/object/clear");
const obj = { foo: "bar" };
clear(obj);
Object.keys(obj); // []
```