import * as AWS from 'aws-sdk'; import {IResponse, response} from './tools'; AWS.config.update({region: 'us-east-1'}); // Virginia export class ToolsUtils { constructor() { } public async removeEmptyStringElements(obj) { try { for (let prop in obj) { if (typeof obj[prop] === 'object') {// dive deeper in await this.removeEmptyStringElements(obj[prop]); } else if (obj[prop] === '') {// delete elements that are empty strings delete obj[prop]; } } return obj; } catch (error) { } } }