0.2.0 • Published 7 years ago
object-shape v0.2.0
object-shape
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]