Merge pull request #992 from 30-seconds/clarification-of-stringification

Clarify that keys are being stringified
This commit is contained in:
Angelos Chalaris
2019-07-01 08:00:45 +03:00
committed by GitHub

View File

@ -1,6 +1,6 @@
### mapObject
Maps the values of an array to an object using a function, where the key-value pairs consist of the original value as the key and the mapped value.
Maps the values of an array to an object using a function, where the key-value pairs consist of the stringified value as the key and the mapped value.
Use an anonymous inner function scope to declare an undefined memory space, using closures to store a return value. Use a new `Array` to store the array with a map of the function over its data set and a comma operator to return a second step, without needing to move from one context to another (due to closures and order of operations).