/**
 * @since Last modified: 2023-12-05 12:13:54
 * @function getDataType
 * @description Get object type.Can detect object types such as Array, Object, Function, String, Number, Boolean, Date, Symbol , Null, Undefined, HTMLxxxElement (Dom nodes all contain HTML),Promise,AsyncFunction.
 * @param {*} obj - Can be any object
 * @returns {string} - Return the data type name
 * @see {@link https://codepen.io/axui/pen/ZEwKdGQ|demo @ codepen}
 * @example
 * ax.getDataType(100);
 * <!--return 'Number'-->
 */
'use strict';
const getDataType = (obj:any): string => Object.prototype.toString.call(obj).slice(8, -1);
export default getDataType;
