Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including get-object-type with all npm packages installed. Try it out:

var getType = require('get-object-type'); var r1 = getType(null); // returns 'Null' var r2 = getType([]); // returns 'Array' var r3 = getType({foo: 'bar'}); // returns 'Object' var r4 = getType(42); // returns 'Number' console.log(r1, r2, r3, r4);

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

get-object-type v0.0.2

get the type of a javascript object.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free