UNPKG

@ecomplus/utils

Version:

JS utility functions to E-Com Plus (not only) related apps

18 lines 491 B
export default phone; /** * @method * @memberof ecomUtils * @name phone * @description Returns phone string from customer body or phone object. * @param {Object.<string, *>} customer - Customer body object or phone object with number property * @returns {string} * * @example * const customer = { 'number': '31992980000'} * ecomUtils.phone(customer) * // => '31992980000' */ declare function phone(customer: { [x: string]: any; }): string; //# sourceMappingURL=phone.d.ts.map