-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($compile): Fix for error: unexpected Token: /*
- Loading branch information
Sergey Akopkokhyants
authored and
Sergey Akopkokhyants
committed
Jun 13, 2017
1 parent
2cf562a
commit 631ac12
Showing
9 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
|
||
// 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:any) { | ||
export function isString(obj: any): boolean { | ||
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: any) { | ||
export function isNumber(obj: any): boolean { | ||
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: any) { | ||
export function isFunction(obj: any): boolean { | ||
return typeof obj === "function"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters