Design a library that converts the values of the properties of an arbitrary object to another language/unit. The conversion rules are configurable.
- The object is arbitrary. If a new object is added, no need to update the code to support it.
- The maximum nest level of objects hierarchy is 10.
- The object has properties of type string, integer, float, etc. For strings please use a mock translation service.
- A configuration is provided so that the library knows which property to convert and how.
- Please optimize and benchmark memory/cpu usage of your implementation, and send the result together with the code.
- Make sure that you have
node
installed on your computer. - Fork and clone this repo on your computer.
cd
into the root directory and runnode index.js
.- Check the differents inputs for
index.js
.
- Aldair Bernal - Full work - Aldair47x
Follow me! – aldair47x@Twitter – aldair47x@gmail.com
This project is licensed under the MIT License - see the LICENSE.md file for details.