UNPKG

ng2-toasty

Version:

Angular2 Toasty component shows growl-style alerts and messages for your web app

28 lines (27 loc) 809 B
// Copyright (C) 2016-2017 Sergey Akopkokhyants // This project is licensed under the terms of the MIT license. // https://github.com/akserg/ng2-toasty /** * Check and return true if an object is type of string * @param obj Analyse has to object the string type * @return result of analysis */ export function isString(obj) { return typeof obj === "string"; } /** * Check and return true if an object is type of number * @param obj Analyse has to object the boolean type * @return result of analysis */ export function isNumber(obj) { return typeof obj === "number"; } /** * Check and return true if an object is type of Function * @param obj Analyse has to object the function type * @return result of analysis */ export function isFunction(obj) { return typeof obj === "function"; }