code: function typeOf (value) {
    if (value === null) return 'null'
    var valueType = typeof value
    if (valueType === 'object') {
      valueType = value.constructor.name.toLowerCase()
    }
    return valueType
  }
docs: Helper function to determine the type of a primitive or Object