mirror of
https://github.com/Azure/setup-helm.git
synced 2026-07-09 09:41:37 +00:00
v3 new release (#80)
This commit is contained in:
committed by
GitHub
parent
a767c8d3a1
commit
20d2b4f98d
+13
@@ -0,0 +1,13 @@
|
||||
import keys from './keys.js';
|
||||
|
||||
// Convert an object into a list of `[key, value]` pairs.
|
||||
// The opposite of `_.object` with one argument.
|
||||
export default function pairs(obj) {
|
||||
var _keys = keys(obj);
|
||||
var length = _keys.length;
|
||||
var pairs = Array(length);
|
||||
for (var i = 0; i < length; i++) {
|
||||
pairs[i] = [_keys[i], obj[_keys[i]]];
|
||||
}
|
||||
return pairs;
|
||||
}
|
||||
Reference in New Issue
Block a user