(value, converter)
| 7 | import isPlainObj from './utils/isPlainObj'; |
| 8 | |
| 9 | export function fromJS(value, converter) { |
| 10 | return fromJSWith( |
| 11 | [], |
| 12 | converter || defaultConverter, |
| 13 | value, |
| 14 | '', |
| 15 | converter && converter.length > 2 ? [] : undefined, |
| 16 | { '': value } |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | function fromJSWith(stack, converter, value, key, keyPath, parentValue) { |
| 21 | if ( |