cosmos-explorer/src/Shared/StringUtility.ts
Laurent Nguyen 3f34936acd
Add more files to strict compile. Update CONTRIBUTING.md (#63)
* Add more files to strict compile. Update CONTRIBUTING.md to recommend FluentUI use

* Remove eslint-disable and use non-null assertion
2020-07-06 17:16:24 +02:00

10 lines
213 B
TypeScript

export class StringUtility {
public static toNumber(num: string | null): number {
return Number(num);
}
public static toBoolean(valueStr: string | null): boolean {
return valueStr === "true";
}
}