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,7 +1,7 @@
import baseProperty from './.internal/baseProperty.js';
import basePropertyDeep from './.internal/basePropertyDeep.js';
import isKey from './.internal/isKey.js';
import toKey from './.internal/toKey.js';
import baseProperty from './.internal/baseProperty.js'
import basePropertyDeep from './.internal/basePropertyDeep.js'
import isKey from './.internal/isKey.js'
import toKey from './.internal/toKey.js'
/**
* Creates a function that returns the value at `path` of a given object.
@@ -15,16 +15,16 @@ import toKey from './.internal/toKey.js';
* const objects = [
* { 'a': { 'b': 2 } },
* { 'a': { 'b': 1 } }
* ];
* ]
*
* map(objects, property('a.b'));
* map(objects, property('a.b'))
* // => [2, 1]
*
* map(sortBy(objects, property(['a', 'b'])), 'a.b');
* map(sortBy(objects, property(['a', 'b'])), 'a.b')
* // => [1, 2]
*/
function property(path) {
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path)
}
export default property;
export default property