code: function getType (val) {
    if (val === null) {
      return 'null'
    } else if (val === void 0) {
      return 'undefined'
    }
    return Object.prototype.toString.call(val)
      .replace(/^\[.+\s(.+?)]$/, '$1')
      .toLowerCase()
  }
docs: Return type of given value.
  
  @param {*} val Value to identify
  @return {string}