katoikia-app/web-ui/web-react/node_modules/ext/docs/object/clear.md

13 lines
232 B
Markdown
Raw Normal View History

2022-07-06 04:15:11 +00:00
# `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); // []
```