Skip to content

Instantly share code, notes, and snippets.

@konjag

konjag/example.js

Created Mar 25, 2019
Embed
What would you like to do?
Example code to test linting.
import 'whatwg-fetch';
import foo from './foo';
var a = 1;
var b = 2;
a = 5;
const inbox = [{
id: 1,
subject: 'Mockingbird',
}, {
id: 2,
subject: 'Foo',
}, {
id: 3,
subject: 'Bar',
}];
const messages = [...inbox].filter((msg) => {
const { subject, author } = msg;
if (subject === 'Mockingbird') {
return author === 'Harper Lee';
} else {
return false;
}
});
function run() {
console.log(messages, a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment