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
let firstDay = ['ip1', 'ip2', 'ip3'] | |
let secondDay = ['ipx', 'ipy', 'ipz'] | |
console.log([...firstDay, ...secondDay]); |
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
import _ from 'underscore'; | |
let ranks = [{name:'one',rank:1},{name:'two',rank:2}]; | |
let getByRanks = (ranks)=>{ | |
return _.sortBy(_pluck(ranks,'rank'), function(num) { | |
return num; | |
}) | |
}; | |
let getRankAverage = (ranks)=>{ |
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'; | |
/** | |
* Module dependencies. | |
*/ | |
var should = require('should'), | |
mongoose = require('mongoose'), | |
User = mongoose.model('User'), | |
Applicant = mongoose.model('Applicant'); |