Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,4 +1,4 @@
import baseForOwn from './baseForOwn.js';
import baseForOwn from './baseForOwn.js'
/**
* Creates an object composed of the inverted keys and values of `object`.
@@ -11,17 +11,17 @@ import baseForOwn from './baseForOwn.js';
* @returns {Object} Returns the new inverted object.
* @example
*
* const object = { 'a': 1, 'b': 2, 'c': 1 };
* const object = { 'a': 1, 'b': 2, 'c': 1 }
*
* invert(object);
* invert(object)
* // => { '1': 'c', '2': 'b' }
*/
function invert(object) {
const result = {};
const result = {}
baseForOwn(object, (value, key) => {
result[value] = key;
});
return result;
result[value] = key
})
return result
}
export default invert;
export default invert