Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Originate/object-depth-js

Repository files navigation

JavaScript Object Depth

CircleCI dependencies Status devDependencies Status

Determines the depth of JavaScript objects.

objectDepth = require('object-depth')
objectDepth({})          // 0
objectDepth({ one: 1 }   // 1
objectDepth({
  user: {
    first: "Jean-Luc",
    last: "Picard"
  }
})                       // 2

About

Calculates the depth of a JavaScript object

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •