Skip to content

Instantly share code, notes, and snippets.

@tylerthebuildor
Created August 9, 2016 22:32
Show Gist options
  • Save tylerthebuildor/48c4c8bf39a014004da6fa0b80a7f8b6 to your computer and use it in GitHub Desktop.
Save tylerthebuildor/48c4c8bf39a014004da6fa0b80a7f8b6 to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
</head>
<body>
<!-- put markup and other contents here -->
</body>
</html>
const allThings = ['dog', 'cat', 'spouse', 'home'];
const badThings = ['dog', 'spouse'];
const thingsLeft = allThings.filter(thing => {
return badThings.every(badThing => badThing !== thing);
});
console.log(thingsLeft);
{
"name": "esnextbin-sketch",
"version": "0.0.0"
}
'use strict';
var allThings = ['dog', 'cat', 'spouse', 'home'];
var badThings = ['dog', 'spouse'];
var thingsLeft = allThings.filter(function (thing) {
return badThings.every(function (badThing) {
return badThing !== thing;
});
});
console.log(thingsLeft);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment