Simple type checks for Javascript as a component. Adapted from is-type and core-util-is.
var is = require('is-type');
is.array([1]); // => true
is.primitive(true); // => true
is.primitive({}); // => false
is.string('hello'); // => true
is.number(4); // => true