File tree 12 files changed +25
-17
lines changed 12 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 66
66
},
67
67
"dependencies" : {
68
68
"invariant" : " ^2.2.1" ,
69
- "is-function" : " ^1.0.1" ,
70
- "is-plain-object" : " ^2.0.4" ,
71
- "is-symbol" : " ^1.0.1" ,
72
69
"lodash.camelcase" : " ^4.3.0" ,
73
70
"lodash.curry" : " ^4.1.1" ,
74
71
"reduce-reducers" : " ^0.1.0"
Original file line number Diff line number Diff line change 1
1
import invariant from 'invariant' ;
2
- import isFunction from 'is-function ' ;
3
- import isSymbol from 'is-symbol ' ;
2
+ import isFunction from './utils/isFunction ' ;
3
+ import isSymbol from './utils/isSymbol ' ;
4
4
import isEmpty from './utils/isEmpty' ;
5
5
import toString from './utils/toString' ;
6
6
import isString from './utils/isString' ;
Original file line number Diff line number Diff line change 1
- import isFunction from 'is-function' ;
2
1
import invariant from 'invariant' ;
2
+ import isFunction from './utils/isFunction' ;
3
3
import identity from './utils/identity' ;
4
4
import isNull from './utils/isNull' ;
5
5
Original file line number Diff line number Diff line change 1
- import isPlainObject from 'is-plain-object' ;
2
- import isFunction from 'is-function' ;
3
1
import invariant from 'invariant' ;
2
+ import isPlainObject from './utils/isPlainObject' ;
3
+ import isFunction from './utils/isFunction' ;
4
4
import identity from './utils/identity' ;
5
5
import isArray from './utils/isArray' ;
6
6
import isString from './utils/isString' ;
Original file line number Diff line number Diff line change 1
1
import invariant from 'invariant' ;
2
- import isFunction from 'is-function ' ;
3
- import isPlainObject from 'is-plain-object ' ;
2
+ import isFunction from './utils/isFunction ' ;
3
+ import isPlainObject from './utils/isPlainObject ' ;
4
4
import identity from './utils/identity' ;
5
5
import isNil from './utils/isNil' ;
6
6
import isUndefined from './utils/isUndefined' ;
Original file line number Diff line number Diff line change 1
1
import reduceReducers from 'reduce-reducers' ;
2
- import isPlainObject from 'is-plain-object' ;
3
2
import invariant from 'invariant' ;
3
+ import isPlainObject from './utils/isPlainObject' ;
4
4
import isMap from './utils/isMap' ;
5
5
import ownKeys from './utils/ownKeys' ;
6
6
import flattenReducerMap from './utils/flattenReducerMap' ;
Original file line number Diff line number Diff line change 1
- import isPlainObject from 'is-plain-object ' ;
1
+ import isPlainObject from './isPlainObject ' ;
2
2
import flattenWhenNode from './flattenWhenNode' ;
3
3
4
4
export default flattenWhenNode ( isPlainObject ) ;
Original file line number Diff line number Diff line change 1
- import isPlainObject from 'is-plain-object ' ;
1
+ import isPlainObject from './isPlainObject ' ;
2
2
import isMap from './isMap' ;
3
3
import hasGeneratorInterface from './hasGeneratorInterface' ;
4
4
import flattenWhenNode from './flattenWhenNode' ;
Original file line number Diff line number Diff line change
1
+ export default value => typeof value === 'function' ;
Original file line number Diff line number Diff line change
1
+ export default value => {
2
+ if ( typeof value !== 'object' || value === null ) return false ;
3
+
4
+ let proto = value ;
5
+ while ( Object . getPrototypeOf ( proto ) !== null ) {
6
+ proto = Object . getPrototypeOf ( proto ) ;
7
+ }
8
+
9
+ return Object . getPrototypeOf ( value ) === proto ;
10
+ } ;
Original file line number Diff line number Diff line change
1
+ export default value =>
2
+ typeof value === 'symbol' ||
3
+ ( typeof value === 'object' &&
4
+ Object . prototype . toString . call ( value ) === '[object Symbol]' ) ;
Original file line number Diff line number Diff line change @@ -3456,10 +3456,6 @@ is-fullwidth-code-point@^2.0.0:
3456
3456
version "2.0.0"
3457
3457
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f"
3458
3458
3459
- is-function@^1.0.1 :
3460
- version "1.0.1"
3461
- resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
3462
-
3463
3459
is-generator-fn@^1.0.0 :
3464
3460
version "1.0.0"
3465
3461
resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a"
You can’t perform that action at this time.
0 commit comments