mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Remove arrayPush in favor of spreading arguments.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import arrayPush from './arrayPush.js'
|
||||
import getSymbols from './getSymbols.js'
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
@@ -14,7 +13,7 @@ const nativeGetSymbols = Object.getOwnPropertySymbols
|
||||
const getSymbolsIn = !nativeGetSymbols ? () => [] : object => {
|
||||
const result = []
|
||||
while (object) {
|
||||
arrayPush(result, getSymbols(object))
|
||||
result.push(...getSymbols(object))
|
||||
object = Object.getPrototypeOf(Object(object))
|
||||
}
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user