/branches/version1.x/examples/data/parameters2.js
http://jsdoc-toolkit.googlecode.com/ · JavaScript · 11 lines · 4 code · 0 blank · 7 comment · 4 complexity · cbe40a3088b1d1c36d3ece23240bb13a MD5 · raw file
- /**
- * Modify the details of the employee.
- * @param {object} employee The employee.
- * @param {object} newDetails
- * @config {string} [title] The new job title.
- * @config {number} salary The new salary.
- */
- function modify(employee, newDetails) {
- if (newDetails.title != undefined) employee.title = newDetails.title;
- if (newDetails.salary != undefined) employee.salary = newDetails.salary;
- }