This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Convert a multidimensional array/object to a single dimenstion object. | |
| * @param data {array|object} Input data. | |
| * @param prefix {string} key prefix. | |
| */ | |
| var fn_dotArray = function (data, prefix) { | |
| var out = {}; | |
| $.each(data, function (k, v) { | |
| if (v !== null && typeof v == 'object') { | |
| $.extend(out, fn_dotArray(v, prefix + k + '.')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * A list of weird and edge-case UK addresses for testing based on https://www.mjt.me.uk/posts/falsehoods-programmers-believe-about-addresses/ | |
| */ | |
| return [ | |
| // Building with name. | |
| 'Royal Opera House, Covent Garden, London, WC2E 9DD', | |
| // Numeric range building number. |