object-shape

0.2.0 • Public • Published

object-shape

NPM

Returns a String description of a given object's shape.

import shape from 'object-shape';
 
shape('hello')        // [String 0,1,2,3,4]
shape({ foo:'bar' })  // [Object foo]
shape(/reg/i)         // [RegExp]
shape(new Foo())      // [Foo a,b,c]

Readme

Keywords

Package Sidebar

Install

npm i object-shape

Weekly Downloads

4

Version

0.2.0

License

MIT

Last publish

Collaborators

  • developit