UNPKG

315 BTypeScriptView Raw
1/**
2 * Returns a string with the data type from given value.
3 * @example
4 * typeOf('hello'); // output: string
5 * typeOf(function() {}); // output: function
6 * typeOf(new Date()); // output: date
7 * @param value
8 * @return {string}
9 */
10declare const typeOf: <T>(value: T) => string;
11export default typeOf;