main.js
1
2
3
4
5
6
7
8
9
const payment = ({ amount = 5, stringent = 1 }) => ({
  amount,
  currency: 'GBP',
  stringent
});

const v1 = payment({ stringent: 0 });

console.log(v1);
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie