Last updated 2 years ago
typeOf()
Gets the specific object type of any value.
any
const typeOf = (value: any): string => Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
value: any
The value of any type to obtain its object class name.
object
The return value is the object class name of the given value.
value
// Example usage. import { typeOf } from '@angular-package/type';