helpers.ts 178 Bytes
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
5
6
const helpers = {
  stringToArray: function (input: string) {
    if (input != null) {
      return input.split(',')
    } else {
      return null
Wolfgang Knopki's avatar
Wolfgang Knopki committed
7
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
8
9
  }
}
Wolfgang Knopki's avatar
Wolfgang Knopki committed
10

Rosanny Sihombing's avatar
Rosanny Sihombing committed
11
export = helpers