Answer the question
In order to leave comments, you need to log in
JSLint: Expected '{' and instead saw '=>' for anonymous function?
https://jslint.com/
export default ({
title,
description,
imageUrl: imageUrl = 'static/favico/android-chrome-512x512.png',
lang: lang = LANG
}) => {
return facebook({title, description, imageUrl, lang,});
};
Answer the question
In order to leave comments, you need to log in
JSLint wants you to export functions not in the arrow style (() => {}), but in the good old function() {}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question