Last active
March 4, 2020 16:09
-
-
Save jwulf/b220dc3413b94d3274022f0f68571293 to your computer and use it in GitHub Desktop.
A code example from the article https://www.joshwulf.com/blog/2020/03/why-array-map/
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
const makeProject = i => ({ | |
Project_ID: i.id, | |
Project_Name: i.name, | |
Project_Start_Date: i.starts_at, | |
Project_End_Date: i.ends_at, | |
Project_Status: i.project_state | |
}) | |
const projects = content.map(makeProject) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment