src/isObject.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
// Function, regex, object, Number, String, etc
export default (value: unknown): boolean => {
  const type = typeof value
  return value != null && (type == "object" || type == "function")
}