forked from orbit-oss/is
Remove moot tslint disable comment (#46)
This commit is contained in:
parent
7ae4b44ca2
commit
38df0cfb24
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ export const enum TypeName {
|
|||
}
|
||||
|
||||
const toString = Object.prototype.toString;
|
||||
const isOfType = <T>(type: string) => (value: any): value is T => typeof value === type; // tslint:disable-line:strict-type-predicates
|
||||
const isOfType = <T>(type: string) => (value: any): value is T => typeof value === type;
|
||||
|
||||
const getObjectType = (value: any): TypeName | null => {
|
||||
const objectName = toString.call(value).slice(8, -1) as string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue