mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Remove baseKeys and baseKeysIn.
This commit is contained in:
3
size.js
3
size.js
@@ -1,4 +1,3 @@
|
||||
import baseKeys from './.internal/baseKeys.js'
|
||||
import getTag from './.internal/getTag.js'
|
||||
import isArrayLike from './isArrayLike.js'
|
||||
import isString from './isString.js'
|
||||
@@ -38,7 +37,7 @@ function size(collection) {
|
||||
if (tag == mapTag || tag == setTag) {
|
||||
return collection.size
|
||||
}
|
||||
return baseKeys(collection).length
|
||||
return Object.keys(collection).length
|
||||
}
|
||||
|
||||
export default size
|
||||
|
||||
Reference in New Issue
Block a user