]> git.r.bdr.sh - rbdr/dotfiles/blob
8c44c8d8027f8bd63eb5a371ff6b1ae70dab6d74
[rbdr/dotfiles] /
1 'use strict';
2
3 var eq = require('./eq')
4 , some = require('./some');
5
6 module.exports = function (obj, searchValue) {
7 var r;
8 return some(obj, function (value, name) {
9 if (eq(value, searchValue)) {
10 r = name;
11 return true;
12 }
13 return false;
14 }) ? r : null;
15 };