index.js
function isPrimitive (val) {
  if (val === null || val === undefined || val === Infinity || isLiterallyNaN(val)) {
    return true
  }
  return primitives.some(function (Class) {
    return val === Class || directInstanceOf(val, Class)
  })
}
function isPrimitive (val) {
  if (val === null || val === undefined || val === Infinity || isLiterallyNaN(val)) {
    return true
  }
  return primitives.some(function (Class) {
    return val === Class || directInstanceOf(val, Class)
  })
}
function isPrimitive ( val ) { if ( val === null || val === undefined || val === Infinity || isLiterallyNaN ( val ) ) { return true } return primitives . some ( function ( Class ) { return val === Class || directInstanceOf ( val , Class ) } ) }
returns if a value is an instance of a primitive type
@param  {*}  thing  value to check if is primitive
@return {Boolean}   true if val is primitive, else false
returns if a value is an instance of a primitive type