Updated the Survey.
This commit is contained in:
parent
f59686eae0
commit
6d3ba1a714
1203 changed files with 140782 additions and 5 deletions
12
node_modules/got/source/utils/deep-freeze.js
generated
vendored
Normal file
12
node_modules/got/source/utils/deep-freeze.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
'use strict';
|
||||
const is = require('@sindresorhus/is');
|
||||
|
||||
module.exports = function deepFreeze(object) {
|
||||
for (const [key, value] of Object.entries(object)) {
|
||||
if (is.plainObject(value) || is.array(value)) {
|
||||
deepFreeze(object[key]);
|
||||
}
|
||||
}
|
||||
|
||||
return Object.freeze(object);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue