'use strict';

/**
 *
 * @param phoneNumber
 * @returns True if number that starts with "+" and contains a mix of digits and spaces with at least 4 digits.
 */
const isValidPhoneNumber = phoneNumber => /^\+[\d-\s]+$/.test(phoneNumber) && (phoneNumber.match(/\d+/g)?.join('').length ?? 0) >= 4;

exports.isValidPhoneNumber = isValidPhoneNumber;
//# sourceMappingURL=isValidPhoneNumber.js.map
