mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
13 lines
232 B
Markdown
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); // []
|
|
```
|