mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v4.7.0.
This commit is contained in:
@@ -4,15 +4,24 @@ define([], function() {
|
||||
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||
|
||||
/**
|
||||
* Creates an array of the own symbol properties of `object`.
|
||||
* Creates an array of the own enumerable symbol properties of `object`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to query.
|
||||
* @returns {Array} Returns the array of symbols.
|
||||
*/
|
||||
var getSymbols = getOwnPropertySymbols || function() {
|
||||
return [];
|
||||
};
|
||||
function getSymbols(object) {
|
||||
// Coerce `object` to an object to avoid non-object errors in V8.
|
||||
// See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details.
|
||||
return getOwnPropertySymbols(Object(object));
|
||||
}
|
||||
|
||||
// Fallback for IE < 11.
|
||||
if (!getOwnPropertySymbols) {
|
||||
getSymbols = function() {
|
||||
return [];
|
||||
};
|
||||
}
|
||||
|
||||
return getSymbols;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user