diff --git a/google_search_features.js b/google_search_features.js index b75aa82..56cff5b 100644 --- a/google_search_features.js +++ b/google_search_features.js @@ -95,7 +95,7 @@ const BlinkFeatureNameToCaniuseName = { * @param {string} propName Property name to filter on. * @return {!Array} unique array of items */ -function uniqueByProperty(items, propName) { +function uniqueByProperty(items = [], propName) { const posts = Array.from(items.reduce((map, item) => { return map.set(item[propName], item); }, new Map()).values());