Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.
/ whatIsIn.js Public archive

A minimal function to return a string of the recursive representation of an object.

License

Notifications You must be signed in to change notification settings

Hellyna/whatIsIn.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whatIsIn.js

A minimal function to return a string of the recursive representation of an object.

Installation

npm install whatisin

Usage

On servers(node), you can just require to use the function.

var whatIsIn = require('whatisin');
console.log(whatIsIn(someVeryComplicatedObject));

On web browsers, including whatIsIn.js should add it to the global window object (untested).

<script src="/path/to/whatIsIn.js"></script>
<script>
alert(whatIsIn(someVeryComplicatedObject));
</script>

Caveats

For now, this function does not support detecting cyclic references. Coming soon :).

About

A minimal function to return a string of the recursive representation of an object.

Resources

License

Stars

Watchers

Forks

Packages

No packages published