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 baseGet from './.internal/baseGet.js';
import baseGet from './.internal/baseGet.js'
/**
* The opposite of `property`; this method creates a function that returns
* The opposite of `property`s method creates a function that returns
* the value at a given path of `object`.
*
* @since 3.0.0
@@ -10,17 +10,17 @@ import baseGet from './.internal/baseGet.js';
* @returns {Function} Returns the new accessor function.
* @example
*
* const array = [0, 1, 2];
* const object = { 'a': array, 'b': array, 'c': array };
* const array = [0, 1, 2]
* const object = { 'a': array, 'b': array, 'c': array }
*
* map(['a[2]', 'c[0]'], propertyOf(object));
* map(['a[2]', 'c[0]'], propertyOf(object))
* // => [2, 0]
*
* map([['a', '2'], ['c', '0']], propertyOf(object));
* map([['a', '2'], ['c', '0']], propertyOf(object))
* // => [2, 0]
*/
function propertyOf(object) {
return path => object == null ? undefined : baseGet(object, path);
return path => object == null ? undefined : baseGet(object, path)
}
export default propertyOf;
export default propertyOf