Skip to content

Commit f26ab4f

Browse files
Lodash optimization (#120)
Co-authored-by: Vadim Korobka <[email protected]>
1 parent 657bc72 commit f26ab4f

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"xo": "^0.24.0"
5353
},
5454
"dependencies": {
55-
"lodash": "^4.17.15"
55+
"lodash.isplainobject": "^4.0.6",
56+
"lodash.isstring": "^4.0.1"
5657
},
5758
"xo": {
5859
"prettier": true,

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { isPlainObject, isString } from 'lodash';
1+
import isPlainObject from 'lodash.isplainobject';
2+
import isString from 'lodash.isstring';
23

34
export function isFSA(action) {
45
return (

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3918,6 +3918,16 @@ lodash.isequal@^4.5.0:
39183918
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
39193919
integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA=
39203920

3921+
lodash.isplainobject@^4.0.6:
3922+
version "4.0.6"
3923+
resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
3924+
integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=
3925+
3926+
lodash.isstring@^4.0.1:
3927+
version "4.0.1"
3928+
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
3929+
integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=
3930+
39213931
lodash.kebabcase@^4.0.1:
39223932
version "4.1.1"
39233933
resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36"

0 commit comments

Comments
 (0)