made with esnextbin
Last active
August 9, 2016 22:41
-
-
Save tylerthebuildor/e4853033c4332114587977f47c5b5c9c to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const allThings = ['dog', 'cat', 'spouse', 'home']; | |
const badThings = ['dog', 'spouse']; | |
const thingsLeft = allThings.filter(thing => !badThings.includes(thing)); | |
console.log(thingsLeft); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var allThings = ['dog', 'cat', 'spouse', 'home']; | |
var badThings = ['dog', 'spouse']; | |
var thingsLeft = allThings.filter(function (thing) { | |
return !badThings.includes(thing); | |
}); | |
console.log(thingsLeft); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment