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