Use arrow functions for callbacks

This commit is contained in:
MICHAEL JACKSON
2017-11-08 10:14:46 -08:00
parent a8ab0b7dab
commit b614f8646d
14 changed files with 71 additions and 78 deletions

View File

@ -1,7 +1,7 @@
function createSearch(query) {
const params = []
Object.keys(query).forEach(function(param) {
Object.keys(query).forEach(param => {
if (query[param] === '') {
params.push(param) // Omit the trailing "=" from param=
} else {