src/index.js
function typeName(item) {
  if (isNull(item)) {
    return "null";
  }
  else if (isUndefined(item)) {
    return "undefined";
  }

  return /\[.+ ([^\]]+)/.exec(toString(item))[1].toLowerCase();
}
function typeName(item) {
  if (isNull(item)) {
    return "null";
  }
  else if (isUndefined(item)) {
    return "undefined";
  }

  return /\[.+ ([^\]]+)/.exec(toString(item))[1].toLowerCase();
}
function typeName ( item ) { if ( isNull ( item ) ) { return "null" ; } else if ( isUndefined ( item ) ) { return "undefined" ; } return / \[.+ ([^\]]+) / . exec ( toString ( item ) ) [ 1 ] . toLowerCase ( ) ; }
Extract the type name. This uses Object.prototype.toString
to get the type name.

@param {*} item - Item to get the type for
@returns {string} type of the object
Extract the type name . This uses Object . prototype . toString to get the type name .