Es6ify api docs (#21686)

* docs: es6ify docs -> var -> const / let

* docs: apply arrow functions throughout all of the docs
This commit is contained in:
Jorn 2020-01-13 02:29:46 +01:00 committed by Cheng Zhao
parent 29b7d80eb5
commit aef9ab1bb7
6 changed files with 23 additions and 23 deletions

View file

@ -37,7 +37,7 @@ inAppPurchase.on('transactions-updated', (event, transactions) => {
// Check each transaction.
transactions.forEach(function (transaction) {
var payment = transaction.payment
let payment = transaction.payment
switch (transaction.transactionState) {
case 'purchasing':