File tree Expand file tree Collapse file tree 12 files changed +25
-17
lines changed Expand file tree Collapse file tree 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
+ } ;
You can’t perform that action at this time.
0 commit comments