mirror of
https://github.com/actions/setup-python.git
synced 2026-11-01 21:01:00 +00:00
Initial pass
This commit is contained in:
commit
39c08a0eaa
7242 files changed
+1886006
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
module.exports = object => {
|
||||
if (typeof object !== 'object') {
|
||||
throw new TypeError('Expected an object');
|
||||
}
|
||||
|
||||
const ret = {};
|
||||
|
||||
for (const key of Object.keys(object)) {
|
||||
const value = object[key];
|
||||
ret[value] = key;
|
||||
}
|
||||
|
||||
return ret;
|
||||
};
|
||||
Reference in new issue
Block a user