Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / shared / array-adapter.js
blob28a1383322102cbc7cdfaf61856227041e9d94c6
1 'use strict';
3 var _ = require('lodash');
5 module.exports = {
6 get: function(model, key) {
7 return model[key];
8 },
10 at: function(collection, index) {
11 return collection[index];
14 indexOf: function(collection, model) {
15 return _.indexOf(collection, model);