Skip to content

Instantly share code, notes, and snippets.

@TylorS
Created June 13, 2017 13:59
Show Gist options
  • Save TylorS/827f1895e40fbcbcb81d167a2c3cdc37 to your computer and use it in GitHub Desktop.
Save TylorS/827f1895e40fbcbcb81d167a2c3cdc37 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>
import { filter, findIndex, equals } from '167'
const remove = [ 1, 2 ]
const items = [ 1, 2, 3, 4, 5 ]
const result = filter(item => findIndex(equals(item), remove) === -1, items)
console.log(result)
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"167": "0.7.0"
}
}
'use strict';
var _ = require('167');
var remove = [1, 2];
var items = [1, 2, 3, 4, 5];
var result = (0, _.filter)(function (item) {
return (0, _.findIndex)((0, _.equals)(item), remove) === -1;
}, items);
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment