mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
minor fix to deepKeys(..)
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f7eb790f41
commit
3c487f105e
@ -118,7 +118,7 @@ var deepKeys =
|
||||
module.deepKeys =
|
||||
function(obj, stop){
|
||||
var res = []
|
||||
while(obj !== stop && obj != null){
|
||||
while(obj!= null && obj.__proto__ !== stop){
|
||||
res.push(Object.keys(obj))
|
||||
obj = obj.__proto__ }
|
||||
return [...(new Set(res.flat()))] }
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-object",
|
||||
"version": "5.0.9",
|
||||
"version": "5.0.10",
|
||||
"description": "",
|
||||
"main": "object.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user