29 lines
331 B
TypeScript
29 lines
331 B
TypeScript
|
|
/* LANG */
|
|
|
|
const Lang = {
|
|
|
|
isFunction: ( x: any ): x is Function => {
|
|
|
|
return typeof x === 'function';
|
|
|
|
},
|
|
|
|
isString: ( x: any ): x is string => {
|
|
|
|
return typeof x === 'string';
|
|
|
|
},
|
|
|
|
isUndefined: ( x: any ): x is undefined => {
|
|
|
|
return typeof x === 'undefined';
|
|
|
|
}
|
|
|
|
};
|
|
|
|
/* EXPORT */
|
|
|
|
export default Lang;
|