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

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages