Bump to v4.17.5.

This commit is contained in:
John-David Dalton
2018-02-02 21:38:59 -08:00
parent 860d1f9484
commit 0e314104d6
25 changed files with 461 additions and 401 deletions

15
_safeGet.js Normal file
View File

@@ -0,0 +1,15 @@
/**
* Gets the value at `key`, unless `key` is "__proto__".
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function safeGet(object, key) {
return key == '__proto__'
? undefined
: object[key];
}
module.exports = safeGet;