minor fix to deepKeys(..)

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-06-14 17:36:59 +03:00
parent f7eb790f41
commit 3c487f105e
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ var deepKeys =
module.deepKeys = module.deepKeys =
function(obj, stop){ function(obj, stop){
var res = [] var res = []
while(obj !== stop && obj != null){ while(obj!= null && obj.__proto__ !== stop){
res.push(Object.keys(obj)) res.push(Object.keys(obj))
obj = obj.__proto__ } obj = obj.__proto__ }
return [...(new Set(res.flat()))] } return [...(new Set(res.flat()))] }

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-object", "name": "ig-object",
"version": "5.0.9", "version": "5.0.10",
"description": "", "description": "",
"main": "object.js", "main": "object.js",
"scripts": { "scripts": {