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