Created
July 3, 2016 19:23
-
-
Save chuck0523/ea0a1068c44a3d78b13cd86247edc560 to your computer and use it in GitHub Desktop.
This file contains 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
let jobList = [ | |
[0, 'manager', 500, 'Tokyo', 'You have to manage many developers and designers.'], | |
[1, 'developer', 400, 'Tokyo', 'Requirement is your endless effort to keep learning.'], | |
[2, 'designer', 300, 'Okinawa', 'Only you have to do is to be capable to use Illustrator and Photoshop.'], | |
[3, 'senior-designer', 500, 'Okinawa', 'Maybe sometime you have to give advice and feedback to young designers.'], | |
[4, 'ux-designer', 600, 'Tokyo', 'High ability to consider about users is required.'], | |
[5, 'customer-support', 300, 'Ishikawa', 'Customers\' voice must come as our first priority.'] | |
] | |
let jobs = jobList.map((job, id) => { | |
let newJob = new Job() | |
newJob.id = `${id}` | |
newJob.name = job[1] | |
newJob.salary = `${job[2]}` | |
newJob.location = `${job[3]}` | |
newJob.detail = `${job[4]}` | |
newJob.hasApplied = false | |
return newJob | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment