LeetCodeDefanging an IP AddressDefanging an IP AddressEasyStringSolution export function defangIPaddr(address: string): string { return address.replace(/\./g, '[.]'); }LeetCode Logo With TextLeetCode LogoLeetCodeDefanging an IP Addresshttps://leetcode.com/problems/defanging-an-ip-address