Area restrita - Questionario
This commit is contained in:
+1
-3
@@ -1,5 +1,3 @@
|
||||
var baseAssignValue = require('./_baseAssignValue');
|
||||
|
||||
/**
|
||||
* The inverse of `_.toPairs`; this method returns an object composed
|
||||
* from key-value `pairs`.
|
||||
@@ -22,7 +20,7 @@ function fromPairs(pairs) {
|
||||
|
||||
while (++index < length) {
|
||||
var pair = pairs[index];
|
||||
baseAssignValue(result, pair[0], pair[1]);
|
||||
result[pair[0]] = pair[1];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user