summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Brigante <github@bfred.it>2018-04-19 18:10:45 +0700
committerFederico Brigante <github@bfred.it>2018-04-19 18:33:23 +0700
commitf92456727c70f293eea39315ede5d9402fa1b38b (patch)
treefcfaab5c6ce63b4446fd8177cd1e3071ea8932db
parentfaf121da05d41079c77e0f9f1aeac5bba6dfc886 (diff)
downloadasync-f92456727c70f293eea39315ede5d9402fa1b38b.tar.gz
Drop _baseProperty
-rw-r--r--lib/internal/filter.js2
-rw-r--r--lib/internal/property.js5
-rw-r--r--lib/sortBy.js2
3 files changed, 7 insertions, 2 deletions
diff --git a/lib/internal/filter.js b/lib/internal/filter.js
index c5e49cc..0e6ced4 100644
--- a/lib/internal/filter.js
+++ b/lib/internal/filter.js
@@ -1,6 +1,6 @@
import arrayMap from 'lodash/_arrayMap';
import isArrayLike from 'lodash.isarraylike';
-import property from 'lodash/_baseProperty';
+import property from './property';
import noop from './noop';
import wrapAsync from './wrapAsync';
diff --git a/lib/internal/property.js b/lib/internal/property.js
new file mode 100644
index 0000000..567b3c3
--- /dev/null
+++ b/lib/internal/property.js
@@ -0,0 +1,5 @@
+export default function property(property) {
+ return function (object) {
+ return object[property];
+ }
+}
diff --git a/lib/sortBy.js b/lib/sortBy.js
index 399debd..0c3648c 100644
--- a/lib/sortBy.js
+++ b/lib/sortBy.js
@@ -1,8 +1,8 @@
import arrayMap from 'lodash/_arrayMap';
-import property from 'lodash/_baseProperty';
import map from './map';
import wrapAsync from './internal/wrapAsync';
+import property from './internal/property';
/**
* Sorts a list by the results of running each `coll` value through an async