mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40: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 =
|
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()))] }
|
||||||
|
|||||||
@ -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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user