Skip to content

Commit e592f7c

Browse files
committed
Remove unused functions in is
1 parent 499a648 commit e592f7c

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

  • extensions/typescript/src/utils

extensions/typescript/src/utils/is.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,10 @@ export function defined(value: any): boolean {
1111
return typeof value !== 'undefined';
1212
}
1313

14-
export function undefined(value: any): boolean {
15-
return typeof value === 'undefined';
16-
}
17-
18-
export function nil(value: any): boolean {
19-
return value === null;
20-
}
21-
2214
export function boolean(value: any): value is boolean {
2315
return value === true || value === false;
2416
}
2517

2618
export function string(value: any): value is string {
2719
return toString.call(value) === '[object String]';
2820
}
29-
30-
export function number(value: any): value is number {
31-
return toString.call(value) === '[object Number]';
32-
}
33-
34-
export function error(value: any): value is Error {
35-
return toString.call(value) === '[object Error]';
36-
}
37-
38-
export function func(value: any): value is Function {
39-
return toString.call(value) === '[object Function]';
40-
}
41-
42-
export function array<T>(value: any): value is T[] {
43-
return Array.isArray(value);
44-
}
45-
46-
export function stringArray(value: any): value is string[] {
47-
return array(value) && (<any[]>value).every(elem => string(elem));
48-
}

0 commit comments

Comments
 (0)