mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Remove check for existence of getOwnPropertySymbols (#4102)
This commit is contained in:
committed by
John-David Dalton
parent
8eccdd098a
commit
151e316263
@@ -13,7 +13,7 @@ const nativeGetSymbols = Object.getOwnPropertySymbols
|
||||
* @param {Object} object The object to query.
|
||||
* @returns {Array} Returns the array of symbols.
|
||||
*/
|
||||
const getSymbols = !nativeGetSymbols ? () => [] : (object) => {
|
||||
function getSymbols (object) {
|
||||
if (object == null) {
|
||||
return []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user