(object)
| 117 | * @return {Array} |
| 118 | */ |
| 119 | export function keys(object) { |
| 120 | const locations = []; |
| 121 | |
| 122 | for (const location in object) { |
| 123 | if (object.hasOwnProperty(location)) { |
| 124 | locations.push(location); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | // numeric descending |
| 129 | return locations.sort((a, b) => b - a); |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Substring replace call to replace part of a string at a certain position |
no outgoing calls
no test coverage detected