made with esnextbin
Created
April 19, 2017 10:35
-
-
Save AshikNesin/8ad705a4fb5e617ce916754e90ba93cc 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> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<!-- 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 freqIntervalItems = [ | |
// [ | |
// { value: 2, label: 'Monday' }, | |
// ], | |
// [{ value: 1, label: 'Sunday' }, | |
// { value: 16, label: 'Thursday' }, | |
// ], | |
// ] | |
// const allFreq = [] | |
// freqIntervalItems.map((item)=>{ | |
// item.map((el)=>{ | |
// allFreq.push(el) | |
// }) | |
// }) | |
// const frequencyInterval = [ | |
// { value: 1, label: 'Sunday' }, | |
// { value: 2, label: 'Monday' }, | |
// { value: 4, label: 'Tuesday' }, | |
// { value: 8, label: 'Wednesday' }, | |
// { value: 16, label: 'Thursday' }, | |
// { value: 32, label: 'Friday' }, | |
// { value: 64, label: 'Saturday' }, | |
// ] | |
// console.log(allFreq) | |
// // const frequencyIntervalSelected = [ | |
// // { value: 1, label: 'Sunday' }, | |
// // { value: 2, label: 'Monday' }, | |
// // ] | |
// const arr = _.differenceBy(frequencyInterval,allFreq,'value') | |
// console.log(arr) | |
const arr = | |
[{ | |
id:1, | |
value:"WTF" | |
}, | |
{ | |
id:1, | |
value:"FTW" | |
} | |
] | |
// function hasDuplicates(array) { | |
// return (new Set(array)).size !== array.length; | |
// } |
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"; | |
// const freqIntervalItems = [ | |
// [ | |
// { value: 2, label: 'Monday' }, | |
// ], | |
// [{ value: 1, label: 'Sunday' }, | |
// { value: 16, label: 'Thursday' }, | |
// ], | |
// ] | |
// const allFreq = [] | |
// freqIntervalItems.map((item)=>{ | |
// item.map((el)=>{ | |
// allFreq.push(el) | |
// }) | |
// }) | |
// const frequencyInterval = [ | |
// { value: 1, label: 'Sunday' }, | |
// { value: 2, label: 'Monday' }, | |
// { value: 4, label: 'Tuesday' }, | |
// { value: 8, label: 'Wednesday' }, | |
// { value: 16, label: 'Thursday' }, | |
// { value: 32, label: 'Friday' }, | |
// { value: 64, label: 'Saturday' }, | |
// ] | |
// console.log(allFreq) | |
// // const frequencyIntervalSelected = [ | |
// // { value: 1, label: 'Sunday' }, | |
// // { value: 2, label: 'Monday' }, | |
// // ] | |
// const arr = _.differenceBy(frequencyInterval,allFreq,'value') | |
// console.log(arr) | |
var arr = [{ | |
id: 1, | |
value: "WTF" | |
}, { | |
id: 1, | |
value: "FTW" | |
}]; | |
// function hasDuplicates(array) { | |
// return (new Set(array)).size !== array.length; | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment