Add example of alternative _.zipObject syntax. [ci skip]

This commit is contained in:
bryce-gibson
2015-03-12 16:02:08 +11:00
committed by jdalton
parent 9712ac550c
commit b6ccb4c96f

View File

@@ -5642,6 +5642,9 @@
* @returns {Object} Returns the new object.
* @example
*
* _.zipObject([['fred', 30], ['barney', 40]]);
* // => { 'fred': 30, 'barney': 40 }
*
* _.zipObject(['fred', 'barney'], [30, 40]);
* // => { 'fred': 30, 'barney': 40 }
*/