export const isArray = ( val ) => { return Object . prototype . toString . call ( val ) === '[object Array]' ; } ; export const isString = ( val ) => { return Object . prototype . toString . call ( val ) === '[object String]' ; } ; export const isObject = ( val ) => { return Object . prototype . toString . call ( val ) === '[object Object]' ; } ; export const isNumber = ( val ) => { return Object . prototype . toString . call ( val ) === '[object Number]' ; } ; export const isCascader = ( { dataSource } ) => { return dataSource && dataSource [ 0 ] && ! isArray ( dataSource [ 0 ] ) ; } ;