mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 12:20:04 +02:00
update modules
This commit is contained in:
6
node_modules/lodash/_safeGet.js
generated
vendored
6
node_modules/lodash/_safeGet.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Gets the value at `key`, unless `key` is "__proto__".
|
||||
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to query.
|
||||
@@ -7,6 +7,10 @@
|
||||
* @returns {*} Returns the property value.
|
||||
*/
|
||||
function safeGet(object, key) {
|
||||
if (key === 'constructor' && typeof object[key] === 'function') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (key == '__proto__') {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user