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 6666 },
6767 "dependencies" : {
6868 "invariant" : " ^2.2.1" ,
69- "is-function" : " ^1.0.1" ,
70- "is-plain-object" : " ^2.0.4" ,
71- "is-symbol" : " ^1.0.1" ,
7269 "lodash.camelcase" : " ^4.3.0" ,
7370 "lodash.curry" : " ^4.1.1" ,
7471 "reduce-reducers" : " ^0.1.0"
Original file line number Diff line number Diff line change 11import 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 ' ;
44import isEmpty from './utils/isEmpty' ;
55import toString from './utils/toString' ;
66import isString from './utils/isString' ;
Original file line number Diff line number Diff line change 1- import isFunction from 'is-function' ;
21import invariant from 'invariant' ;
2+ import isFunction from './utils/isFunction' ;
33import identity from './utils/identity' ;
44import isNull from './utils/isNull' ;
55
Original file line number Diff line number Diff line change 1- import isPlainObject from 'is-plain-object' ;
2- import isFunction from 'is-function' ;
31import invariant from 'invariant' ;
2+ import isPlainObject from './utils/isPlainObject' ;
3+ import isFunction from './utils/isFunction' ;
44import identity from './utils/identity' ;
55import isArray from './utils/isArray' ;
66import isString from './utils/isString' ;
Original file line number Diff line number Diff line change 11import 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 ' ;
44import identity from './utils/identity' ;
55import isNil from './utils/isNil' ;
66import isUndefined from './utils/isUndefined' ;
Original file line number Diff line number Diff line change 11import reduceReducers from 'reduce-reducers' ;
2- import isPlainObject from 'is-plain-object' ;
32import invariant from 'invariant' ;
3+ import isPlainObject from './utils/isPlainObject' ;
44import isMap from './utils/isMap' ;
55import ownKeys from './utils/ownKeys' ;
66import 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 ' ;
22import flattenWhenNode from './flattenWhenNode' ;
33
44export 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 ' ;
22import isMap from './isMap' ;
33import hasGeneratorInterface from './hasGeneratorInterface' ;
44import 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