Skip to content

Commit

Permalink
get rid of modPair fn.
Browse files Browse the repository at this point in the history
  • Loading branch information
StreetStrider committed Oct 12, 2015
1 parent 7755078 commit e653e95
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/sgr.js
Expand Up @@ -43,14 +43,10 @@ sgr.mods = mods;
, onlyKey = require('es5-ext/object/first-key')
, uniq = require('es5-ext/array/#/uniq.js');

sgr.toModPair = function (mod) {
return mod[onlyKey(mod)];
};

var openers = {}, closers = {};

forEach(mods, function (mod) {
var modPair = sgr.toModPair(mod);
var modPair = mod[onlyKey(mod)];

openers[modPair[0]] = modPair;
closers[modPair[1]] = modPair;
Expand Down

0 comments on commit e653e95

Please sign in to comment.