mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-24 20:54:36 +02:00
18 lines
345 B
JavaScript
18 lines
345 B
JavaScript
"use strict";
|
|
|
|
/**
|
|
* Our own flavor of keyMirror since I get some weird
|
|
* obscure error when trying to import the react lib one.
|
|
*/
|
|
var keyMirror = function(obj) {
|
|
var result = {};
|
|
for (var key in obj) {
|
|
if (!obj.hasOwnProperty(key)) {
|
|
continue;
|
|
}
|
|
result[key] = key;
|
|
}
|
|
return result;
|
|
};
|
|
|
|
module.exports = keyMirror;
|