Created
September 7, 2016 20:31
-
-
Save id0Sch/f97b77abf6a0a59cc453015c541f53ae to your computer and use it in GitHub Desktop.
This file contains hidden or 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 _ = require('lodash'); | |
const members = ['ido', 'hengli', 'shir', 'eran', 'elad', 'rachel', 'maayan.Ben', 'maayan.Bat', 'igor', 'tamar', 'tal']; | |
const n = 6; | |
var chunkedArr = _.chain(members).shuffle().chunk(n).value(); | |
setTimeout(() => { | |
console.log('making sure Tiki is not with ido'); | |
setTimeout(() => { | |
console.log('matching good looks to skill'); | |
setTimeout(() => { | |
console.log('balancing frontend to backend developer ratio'); | |
setTimeout(() => { | |
console.log('forcing rachel to join us'); | |
setTimeout(() => { | |
console.log('done!'); | |
console.log('First Team:', chunkedArr[0]); | |
console.log('Second Team:', chunkedArr[1]); | |
}, 300); | |
}, 750); | |
}, 300); | |
}, 250); | |
}, 1500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment