### File

`src/util/string-utils.ts`

### Index

###### Methods
Public convertToString

### Methods

Public convertToString
`convertToString(value: any)`
Defined in src/util/string-utils.ts:5
Parameters :
Name | Type | Optional | Description
value | `any` |  |
Returns : `string`

    import { isNullOrUndefined } from 'util';

    export class StringUtils {

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

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

# results matching ""

# No results matching ""