mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Remove getPrototype.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import arrayPush from './.internal/arrayPush.js';
|
||||
import getPrototype from './.internal/getPrototype.js';
|
||||
import getSymbols from './.internal/getSymbols.js';
|
||||
import stubArray from './stubArray.js';
|
||||
|
||||
@@ -17,7 +16,7 @@ const getSymbolsIn = !nativeGetSymbols ? stubArray : object => {
|
||||
const result = [];
|
||||
while (object) {
|
||||
arrayPush(result, getSymbols(object));
|
||||
object = getPrototype(object);
|
||||
object = Object.getPrototypeOf(Object(object));
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user