### File

`src/util/string.ts`

### Methods

Public convertToString
`convertToString(value: any)`
Defined in src/util/string.ts:5
Returns : `string`

    import { isNullOrUndefined } from 'util';

    export class String {

      public static convertToString(value: any): string {
        if ('string' === typeof value) {
          return value;
        }

        return !isNullOrUndefined(value) ? value.toString() : null;
      }
    }

# results matching ""

# No results matching ""