ngx-toasty
Version:
Angular Toasty component shows growl-style alerts and messages for your web app
19 lines (18 loc) • 408 B
JavaScript
/**
* Check and return true if an object is type of string
*/
export function isString(obj) {
return typeof obj === "string";
}
/**
* Check and return true if an object is type of number
*/
export function isNumber(obj) {
return typeof obj === "number";
}
/**
* Check and return true if an object is type of Function
*/
export function isFunction(obj) {
return typeof obj === "function";
}