Advertisement
fbinnzhivko

3

Sep 22nd, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function properties([firstKey, firstValue, secondKey, secondValue, thirdKey, thirdValue]) {
  2.     return {
  3.         [firstKey]: firstValue,
  4.         [secondKey]: secondValue,
  5.         [thirdKey]: thirdValue
  6.     };
  7. }
  8. console.log(properties(['name', 'Pesho', 'age', '23', 'gender', 'male']));
  9. console.log(properties(['ssid', '90127461', 'status', 'admin', 'expires', '600']));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement