* Converts `map` to its key-value pairs. * * @private * @param {Object} map The map to convert. * @returns {Array} Returns the key-value pairs.
(map)
| 240 | * @returns {Array} Returns the key-value pairs. |
| 241 | */ |
| 242 | function mapToArray(map) { |
| 243 | let index = -1; |
| 244 | |
| 245 | const result = Array(map.size); |
| 246 | |
| 247 | map.forEach((value, key) => { |
| 248 | result[++index] = [key, value]; |
| 249 | }); |
| 250 | return result; |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Creates a unary function that invokes `func` with its argument transformed. |
nothing calls this directly
no outgoing calls
no test coverage detected