my-idlers/node_modules/es5-ext/object/clear.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

17 lines
268 B
JavaScript
Vendored

"use strict";
var keys = require("./keys");
module.exports = function (obj) {
var error;
keys(obj).forEach(function (key) {
try {
delete this[key];
} catch (e) {
if (!error) error = e;
}
}, obj);
if (error !== undefined) throw error;
return obj;
};